fixed perm scripts to follow links
[feisty_meow.git] / scripts / security / exe_perm.sh
index 6d8ed90e66f66c6b75f5cdad44e58f2474445474..d3b68143f60ceb1fee2c99750aa24b2465757c21 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 755 {} ';'
+  find -L "$current" -type d -exec chmod 755 {} ';'
 # >/dev/null 2>/dev/null
-  find "$current" -type f -exec chmod 755 {} ';'
+  find -L "$current" -type f -exec chmod 755 {} ';'
 # >/dev/null 2>/dev/null
 done