[util-livecd] fix syntax
This commit is contained in:
parent
ef70c437f8
commit
b057f308b6
1 changed files with 13 additions and 14 deletions
|
@ -420,23 +420,22 @@ configure_doc(){
|
||||||
}
|
}
|
||||||
|
|
||||||
configure_desktop_items(){
|
configure_desktop_items(){
|
||||||
local xdg=$1/home/${username}/$(xdg-user-dir DESKTOP) \
|
local xdg=$1/home/${username}/$(xdg-user-dir DESKTOP) \
|
||||||
src=$1/usr/share/applications
|
src=$1/usr/share/applications
|
||||||
|
|
||||||
if [[ -f $1/usr/bin/thus ]];then
|
if [[ -f $1/usr/bin/thus ]];then
|
||||||
cp $src/thus.desktop $xdg/thus.desktop
|
cp $src/thus.desktop $xdg/thus.desktop
|
||||||
chmod a+x $xdg/thus.desktop
|
chmod a+x $xdg/thus.desktop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -f $1/usr/bin/calamares ]];then
|
if [[ -f $1/usr/bin/calamares ]];then
|
||||||
cp $src/calamares.desktop $xdg/calamares.desktop
|
cp $src/calamares.desktop $xdg/calamares.desktop
|
||||||
chmod a+x $xdg/calamares.desktop
|
chmod a+x $xdg/calamares.desktop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -f $1/usr/bin/setup ]] || [[ -L $1/usr/bin/setup ]];then
|
if [[ -f $1/usr/bin/setup ]] || [[ -L $1/usr/bin/setup ]];then
|
||||||
cp $src/installer-launcher-cli.desktop $xdg/installer-launcher-cli.desktop
|
cp $src/installer-launcher-cli.desktop $xdg/installer-launcher-cli.desktop
|
||||||
chmod a+x $xdg/installer-launcher-cli.desktop
|
chmod a+x $xdg/installer-launcher-cli.desktop
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue