fix ifelse
This commit is contained in:
parent
0ff01d014a
commit
d6ee9695b0
3
debian/usr/bin/minecraft-pi
vendored
3
debian/usr/bin/minecraft-pi
vendored
@ -20,8 +20,9 @@ if [ -z "${MCPI_SUBSHELL}" ]; then
|
|||||||
if ! command -v adduser &> /dev/null
|
if ! command -v adduser &> /dev/null
|
||||||
then
|
then
|
||||||
pkexec usermod -aG "$(whoami)" docker
|
pkexec usermod -aG "$(whoami)" docker
|
||||||
|
else
|
||||||
|
pkexec adduser "$(whoami)" docker
|
||||||
fi
|
fi
|
||||||
pkexec adduser "$(whoami)" docker
|
|
||||||
fi
|
fi
|
||||||
exec sg docker "env MCPI_SUBSHELL=1 \"$(realpath -e "$0")\""
|
exec sg docker "env MCPI_SUBSHELL=1 \"$(realpath -e "$0")\""
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user