fix ifelse

This commit is contained in:
gamer4life1 2020-10-11 00:18:04 +00:00
parent 0ff01d014a
commit d6ee9695b0
1 changed files with 2 additions and 1 deletions

View File

@ -20,8 +20,9 @@ if [ -z "${MCPI_SUBSHELL}" ]; then
if ! command -v adduser &> /dev/null
then
pkexec usermod -aG "$(whoami)" docker
else
pkexec adduser "$(whoami)" docker
fi
pkexec adduser "$(whoami)" docker
fi
exec sg docker "env MCPI_SUBSHELL=1 \"$(realpath -e "$0")\""
fi