forked from mirrored-repos/manjaro-tools
[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(){
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue