From 1342df44ae32573f8b484b39df016f77f8be41e8 Mon Sep 17 00:00:00 2001 From: xyz Date: Tue, 26 Oct 2021 22:42:19 -0700 Subject: refactor --- home/xyz/.local/bin/chmodef | 1 + home/xyz/.local/bin/mvt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'home/xyz/.local/bin') diff --git a/home/xyz/.local/bin/chmodef b/home/xyz/.local/bin/chmodef index be9b2934..446bc230 100755 --- a/home/xyz/.local/bin/chmodef +++ b/home/xyz/.local/bin/chmodef @@ -1,4 +1,5 @@ #!/bin/sh +# chmodef: CHMOD DEFault # https://wiki.archlinux.org/title/File_permissions_and_attributes#Numeric_method find "$@" -type d -execdir chmod 755 -- '{}' \+ diff --git a/home/xyz/.local/bin/mvt b/home/xyz/.local/bin/mvt index d324856a..eefc19b0 100755 --- a/home/xyz/.local/bin/mvt +++ b/home/xyz/.local/bin/mvt @@ -1,6 +1,6 @@ #!/bin/sh - # emulate mv -t, for use with `find ... -exec mvt ... '{}' \+`, more POSIX compliant + dist="$1" shift mv -- "$@" "$dist" -- cgit v1.2.3-70-g09d2