Skip to content

Commit

Permalink
remove verbose output by default from set_user_permissions.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Schneck committed Mar 2, 2018
1 parent 862d593 commit c22b02f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/common/install/set_user_permission.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#!/usr/bin/env bash
### every exit != 0 fails the script
set -e
if [[ -z $DEBUG ]]; then
verbose="-v"
fi

for var in "$@"
do
echo "fix permissions for: $var"
find "$var"/ -name '*.sh' -exec chmod -v a+x {} +
find "$var"/ -name '*.desktop' -exec chmod -v a+x {} +
chgrp -R 0 "$var" && chmod -R -v a+rw "$var" && find "$var" -type d -exec chmod -v a+x {} +
find "$var"/ -name '*.sh' -exec chmod $verbose a+x {} +
find "$var"/ -name '*.desktop' -exec chmod $verbose a+x {} +
chgrp -R 0 "$var" && chmod -R $verbose a+rw "$var" && find "$var" -type d -exec chmod $verbose a+x {} +
done

0 comments on commit c22b02f

Please sign in to comment.