mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-19 04:49:34 -07:00
Fix permissions for all files, not just .git
This commit is contained in:
parent
3308d1add0
commit
ac1f861bf1
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue