change root to readlink root

This commit is contained in:
Balakrishnan Balasubramanian 2024-11-28 14:11:19 -05:00
parent a7052b04a7
commit 81bb36ee48
2 changed files with 3 additions and 3 deletions

View File

@ -35,8 +35,8 @@ set-perms: ## Restores permissions of all files from ./acl
.PHONY: user-perms .PHONY: user-perms
user-perms: ## Grant running user all permissions. Need for git operations. Does not get copied to real filesystem user-perms: ## Grant running user all permissions. Need for git operations. Does not get copied to real filesystem
find root -type f | xargs sudo setfacl -m "u:${USER}:r" find `readlink root` -type d | xargs sudo setfacl -m "u:${USER}:rwx"
find root -type d | xargs sudo setfacl -m "u:${USER}:rwx" find `readlink root` -type f | xargs sudo setfacl -m "u:${USER}:r"
.PHONY: skel .PHONY: skel
skel: ## Creates common directories needed skel: ## Creates common directories needed

View File

@ -1,6 +1,6 @@
#!/usr/bin/bash #!/usr/bin/bash
root="root" root=$(readlink root)
all_files() { all_files() {
find $root -type f,l find $root -type f,l