1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-05 08:29:02 -08:00

squeeze lines and avoid subshell

This commit is contained in:
Connor Olding 2024-07-04 21:29:24 -07:00
parent 8b67b4f510
commit 31c8e63e74

View file

@ -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