diff --git a/Installer/Ubuntu/ubuntu.sh b/Installer/Ubuntu/ubuntu.sh index c5c8c358..677e900f 100644 --- a/Installer/Ubuntu/ubuntu.sh +++ b/Installer/Ubuntu/ubuntu.sh @@ -64,13 +64,13 @@ command+=" HOME=/root" command+=" PATH=/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/games:/usr/local/games" command+=" TERM=\$TERM" command+=" LANG=C.UTF-8" -command+=" /bin/bash --login" -com="\$@" -if [ -z "\$1" ];then - exec \$command +command+=" /bin/bash" +if [[ -z \$1 ]];then + command+=" --login" else - \$command -c "\$com" + command+=" -c $@" fi +exec \$command EOM echo "fixing shebang of $bin"