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
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
for (( i=0; i < ${#args[*]}; i++ )); do
current="${args[i]}"
# echo "curr is $current"
- find "$current" -type d -exec chmod u+rwx,g+rwx {} ';'
+ find -L "$current" -type d -exec chmod u+rwx,g+rwx {} ';'
### >/dev/null 2>/dev/null
- find "$current" -type f -exec chmod u+rw,g+rw {} ';'
+ find -L "$current" -type f -exec chmod u+rw,g+rw {} ';'
### >/dev/null 2>/dev/null
done
current="${args[i]}"
# echo "curr is $current"
- find "$current" -type d -exec chmod 700 {} ';'
+ find -L "$current" -type d -exec chmod 700 {} ';'
# >/dev/null 2>/dev/null
- find "$current" -type f -exec chmod 600 {} ';'
+ find -L "$current" -type f -exec chmod 600 {} ';'
# >/dev/null 2>/dev/null
done
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 644 {} ';'
+ find -L "$current" -type f -exec chmod 644 {} ';'
### >/dev/null 2>/dev/null
done