[util-livecd] fix syntax

This commit is contained in:
udeved 2015-06-16 00:34:14 +02:00
parent ef70c437f8
commit b057f308b6

View file

@ -420,23 +420,22 @@ configure_doc(){
}
configure_desktop_items(){
local xdg=$1/home/${username}/$(xdg-user-dir DESKTOP) \
src=$1/usr/share/applications
local xdg=$1/home/${username}/$(xdg-user-dir DESKTOP) \
src=$1/usr/share/applications
if [[ -f $1/usr/bin/thus ]];then
cp $src/thus.desktop $xdg/thus.desktop
chmod a+x $xdg/thus.desktop
fi
if [[ -f $1/usr/bin/thus ]];then
cp $src/thus.desktop $xdg/thus.desktop
chmod a+x $xdg/thus.desktop
fi
if [[ -f $1/usr/bin/calamares ]];then
cp $src/calamares.desktop $xdg/calamares.desktop
chmod a+x $xdg/calamares.desktop
fi
if [[ -f $1/usr/bin/calamares ]];then
cp $src/calamares.desktop $xdg/calamares.desktop
chmod a+x $xdg/calamares.desktop
fi
if [[ -f $1/usr/bin/setup ]] || [[ -L $1/usr/bin/setup ]];then
cp $src/installer-launcher-cli.desktop $xdg/installer-launcher-cli.desktop
chmod a+x $xdg/installer-launcher-cli.desktop
fi
if [[ -f $1/usr/bin/setup ]] || [[ -L $1/usr/bin/setup ]];then
cp $src/installer-launcher-cli.desktop $xdg/installer-launcher-cli.desktop
chmod a+x $xdg/installer-launcher-cli.desktop
fi
}