From 31c8e63e74aa46201e8a11711d4ac9d91782a600 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Thu, 4 Jul 2024 21:29:24 -0700 Subject: [PATCH] squeeze lines and avoid subshell --- sh/grab | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sh/grab b/sh/grab index f99a31e..08abd4e 100755 --- a/sh/grab +++ b/sh/grab @@ -90,10 +90,7 @@ will remove temporary files find -name '*.minisig' -delete || die will return files to original directory -cd "$owd" || die -find "$t" -type f | while read -r f -do mv -- "$f" . || die -done || exit +cd "$owd" && find "$t" -type f -exec mv -- {} . \; || die will remove temporary directory # assuming it's now emptied rmdir "$t" || die