From dd78faaf40862bd1552ec36c41374b527f747284 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Fri, 23 Feb 2024 03:08:52 -0800 Subject: Reorganize shell scripts into sh dir, consider in the future fsh will have different kinds of files --- sh/gitmetar | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 sh/gitmetar (limited to 'sh/gitmetar') diff --git a/sh/gitmetar b/sh/gitmetar new file mode 100755 index 0000000..1bfdc15 --- /dev/null +++ b/sh/gitmetar @@ -0,0 +1,7 @@ +#!/bin/sh +# GIT META Read + +while read -r mod user group path; do + chown -hc "$user:$group" -- "$path" + [ "$mod" -ne 777 ] && chmod -c "$mod" -- "$path" +done < "$1" -- cgit v1.2.3-70-g09d2