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:
parent
8b67b4f510
commit
31c8e63e74
1 changed files with 1 additions and 4 deletions
5
sh/grab
5
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
|
||||
|
|
Loading…
Reference in a new issue