Fix variable expansion

This commit is contained in:
Sandro Jäckel
2020-06-03 07:11:30 +02:00
parent b37d912e04
commit bab354ce81

View File

@@ -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