diff --git a/lib/util-livecd.sh b/lib/util-livecd.sh index c73b609..be6b059 100644 --- a/lib/util-livecd.sh +++ b/lib/util-livecd.sh @@ -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 }