diff options
Diffstat (limited to 'init-sh')
-rwxr-xr-x | init-sh/file_perm.sh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/init-sh/file_perm.sh b/init-sh/file_perm.sh index a74a08d..f99ef97 100755 --- a/init-sh/file_perm.sh +++ b/init-sh/file_perm.sh @@ -8,12 +8,10 @@ fi echo -n "Setting files permissions : " grep -v "^#" $1 | while read file owner perm; do - if [[ -a ${file} ]]; then - if [[ ${owner} != current ]]; then - chown ${owner} ${file} - fi - chmod ${perm} ${file} + if [[ ${owner} != current ]]; then + chown ${owner} ${file} fi + chmod ${perm} ${file} done echo "done." |