mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-20 21:33:16 -07:00
Fix permissions for all files, not just .git
This commit is contained in:
parent
3308d1add0
commit
5e27d1e8bd
1 changed files with 3 additions and 3 deletions
|
@ -201,10 +201,10 @@ cleanup() {
|
|||
rm "$F" 2>/dev/null >/dev/null
|
||||
done
|
||||
|
||||
plexupdate_path="$(dirname $0)"
|
||||
# Make sure .git permissions haven't been modified by running as sudo and not sudo on different occasions
|
||||
plexupdate_path="$(dirname "$0")"
|
||||
# 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue