fixed perm scripts to follow links
[feisty_meow.git] / scripts / security / easy_perm.sh
index 6663909bdb4e30efe178ce1cd49ea3a42915d15b..472aa6f31aa96e71e8d9d55535228a52ecc6ab5e 100644 (file)
@@ -13,9 +13,9 @@ for (( i=0; i < ${#args[*]}; i++ )); do
   current="${args[i]}"
 #  echo "curr is $current"
 
-  find "$current" -type d -exec chmod 777 {} ';'
+  find -L "$current" -type d -exec chmod 777 {} ';'
 # >/dev/null 2>/dev/null
-  find "$current" -type f -exec chmod 666 {} ';'
+  find -L "$current" -type f -exec chmod 666 {} ';'
 # >/dev/null 2>/dev/null
 done