From 81bb36ee482f454400e4893cbcc2c066b8359011 Mon Sep 17 00:00:00 2001 From: Balakrishnan Balasubramanian Date: Thu, 28 Nov 2024 14:11:19 -0500 Subject: [PATCH] change root to `readlink root` --- Makefile | 4 ++-- install.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 31520ea..5a6aeb0 100644 --- a/Makefile +++ b/Makefile @@ -35,8 +35,8 @@ set-perms: ## Restores permissions of all files from ./acl .PHONY: user-perms 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 root -type d | xargs sudo setfacl -m "u:${USER}:rwx" + find `readlink root` -type d | xargs sudo setfacl -m "u:${USER}:rwx" + find `readlink root` -type f | xargs sudo setfacl -m "u:${USER}:r" .PHONY: skel skel: ## Creates common directories needed diff --git a/install.sh b/install.sh index 2b7277b..f35ef73 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,6 @@ #!/usr/bin/bash -root="root" +root=$(readlink root) all_files() { find $root -type f,l