diff options
author | Robby Workman <rworkman@slackware.com> | 2019-01-16 00:21:54 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2019-01-16 00:21:54 -0600 |
commit | 7658ac7c89ae1b92d400b7fb206a8abea36ad120 (patch) | |
tree | e424eec8be45130f438f290817ac3202e71c8902 /files/core-functions.sh | |
parent | c7216fb599374fee9833967e8a18d25e1348c4ba (diff) | |
download | slackpkg-7658ac7c89ae1b92d400b7fb206a8abea36ad120.tar.xz |
Remove subshell usage and save a trivial amount of time
Diffstat (limited to 'files/core-functions.sh')
-rw-r--r-- | files/core-functions.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/files/core-functions.sh b/files/core-functions.sh index fa02653..0db3ffe 100644 --- a/files/core-functions.sh +++ b/files/core-functions.sh @@ -25,7 +25,8 @@ One or more errors occurred while slackpkg was running: if [ "$DELALL" = "on" ] && [ "$NAMEPKG" != "" ]; then rm $CACHEPATH/$NAMEPKG &>/dev/null fi - ( rm -f /var/lock/slackpkg.$$ && rm -rf $TMPDIR ) &>/dev/null + rm -f /var/lock/slackpkg.$$ + rm -rf $TMPDIR exit ${retval} } trap 'cleanup' 2 14 15 # trap CTRL+C and kill |