mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-07 20:10:03 +03:00
Fix variable expansion
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user