From ac1f861bf13ea38b0ab1f65adbc4141d87ce7d2c Mon Sep 17 00:00:00 2001 From: Alex Malinovich Date: Tue, 29 Nov 2016 20:15:59 -0800 Subject: [PATCH] Fix permissions for all files, not just .git --- plexupdate.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plexupdate.sh b/plexupdate.sh index fa568c4..d199e37 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -202,9 +202,9 @@ cleanup() { done plexupdate_path="$(dirname $0)" - # Make sure .git permissions haven't been modified by running as sudo and not sudo on different occasions + # Make sure permissions haven't been modified by running as sudo and not sudo on different occasions if [ -d "${plexupdate_path}/.git" ]; then - chown -R --reference="${plexupdate_path}" "${plexupdate_path}/.git" &> /dev/null + chown -R --reference="${plexupdate_path}" "${plexupdate_path}/" &> /dev/null fi } trap cleanup EXIT