Fix permission changes on Linux
`chmod -v` on OSX is non-standard and won't work elsewhere
This commit is contained in:
parent
886c5ada53
commit
943d146c62
1 changed files with 2 additions and 7 deletions
9
yadm
9
yadm
|
@ -342,13 +342,8 @@ function perms() {
|
|||
fi
|
||||
|
||||
#; remove group/other permissions from collected globs
|
||||
perms_modified=$(chmod -v go-rwx ${GLOBS[@]})
|
||||
|
||||
#; report any changed permissions
|
||||
if [ -n "$perms_modified" ] ; then
|
||||
echo "Updated permissions:"
|
||||
ls -l $perms_modified | sort | uniq
|
||||
fi
|
||||
chmod -f go-rwx ${GLOBS[@]} >/dev/null 2>&1
|
||||
#; TODO: detect and report changing permissions in a portable way
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue