From 73eac4f9190169f0205848189c0aa02503d63175 Mon Sep 17 00:00:00 2001 From: Alex Malinovich Date: Mon, 5 Dec 2016 13:29:52 -0800 Subject: [PATCH] Make stat in autoupdate actually do something --- plexupdate.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plexupdate.sh b/plexupdate.sh index f02f0ea..ab0a6a3 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -333,8 +333,8 @@ if [ "${AUTOUPDATE}" = "yes" ]; then # just run in "dumb" mode without trying to restore permissions declare -A FILE_OWNER FILE_PERMS && \ for filename in $PLEXUPDATE_FILES; do - FILE_OWNER[$filename]=$(stat -c "%u:%g") - FILE_PERMS[$filename]=$(stat -c "%a") + FILE_OWNER[$filename]=$(stat -c "%u:%g" "$filename") + FILE_PERMS[$filename]=$(stat -c "%a" "$filename") done if ! git merge --quiet FETCH_HEAD; then