From 4cfa508c3077006e800a841074363882cb7f3965 Mon Sep 17 00:00:00 2001 From: xyz Date: Sun, 3 Oct 2021 01:41:51 -0700 Subject: change mind, use -execdir instead of -exec for find --- .local/bin/chmodef | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.local/bin/chmodef') diff --git a/.local/bin/chmodef b/.local/bin/chmodef index 6836effd..be9b2934 100755 --- a/.local/bin/chmodef +++ b/.local/bin/chmodef @@ -1,5 +1,5 @@ #!/bin/sh # https://wiki.archlinux.org/title/File_permissions_and_attributes#Numeric_method -find "$@" -type d -exec chmod 755 -- '{}' \+ -find "$@" -type f -exec chmod 644 -- '{}' \+ +find "$@" -type d -execdir chmod 755 -- '{}' \+ +find "$@" -type f -execdir chmod 644 -- '{}' \+ -- cgit v1.2.3-70-g09d2