Fix variable expansion

pull/117/head
Sandro Jäckel 5 years ago
parent b37d912e04
commit bab354ce81
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

@ -9,7 +9,7 @@ if [ "${1#-}" != "$1" ]; then
fi
# chown current working directory to current user
if [ "$@" = "$CMD" ] && [ "$(id -u)" = "0" ]; then
if [ "$*" = "$CMD" ] && [ "$(id -u)" = "0" ]; then
find . \! -user "$UID" -exec chown "$UID:$GID" -R '{}' +
exec su-exec "$UID:$GID" "$0" "$@"
fi

Loading…
Cancel
Save