فهرست منبع

setup.sh: updated chmod lines

control 1 سال پیش
والد
کامیت
4fd296e484
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      setup.sh

+ 3 - 3
setup.sh

@@ -6,9 +6,9 @@ hostname="${host^^}"
 repo_directory="/home/control/qconfig_$hostname"
 
 # Set Permissions
-chmod 660 ./*
-chmod 660 "$HOME/.bashrc"
-chmod 770 "$HOME/dots"
+chmod 660 $(find ./ -type f)
+chmod 660 $(find "$HOME/.bashrc" -type f)
+chmod 770 $("$HOME/dots" -type d)
 
 function add_string_to_file() {
     # Checks if a string is in a file