summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/gitmetar
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-10-19 00:14:32 -0700
committerxyz <gky44px1999@gmail.com>2021-10-19 00:14:32 -0700
commitd77b1da9eb3dcbbf80e1c61d00deb657e580da61 (patch)
tree19b17de1c52c033f061b954e00dee69c879b7998 /home/xyz/.local/bin/gitmetar
parentef8b18293ab2a2cccd6d81f2a092420448c9f214 (diff)
refactor
Diffstat (limited to 'home/xyz/.local/bin/gitmetar')
-rwxr-xr-xhome/xyz/.local/bin/gitmetar2
1 files changed, 1 insertions, 1 deletions
diff --git a/home/xyz/.local/bin/gitmetar b/home/xyz/.local/bin/gitmetar
index 2afb195c..535f67ed 100755
--- a/home/xyz/.local/bin/gitmetar
+++ b/home/xyz/.local/bin/gitmetar
@@ -2,5 +2,5 @@
while read -r mod user group path; do
chown -c "$user:$group" -- "$path"
- chmod -c "$mod" -- "$path"
+ [ "$mod" -ne 777 ] && chmod -c "$mod" -- "$path"
done < "$1"