summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackware.com>2019-01-16 00:21:54 -0600
committerRobby Workman <rworkman@slackware.com>2019-01-16 00:21:54 -0600
commit7658ac7c89ae1b92d400b7fb206a8abea36ad120 (patch)
treee424eec8be45130f438f290817ac3202e71c8902 /files
parentc7216fb599374fee9833967e8a18d25e1348c4ba (diff)
downloadslackpkg-7658ac7c89ae1b92d400b7fb206a8abea36ad120.tar.xz
Remove subshell usage and save a trivial amount of time
Diffstat (limited to 'files')
-rw-r--r--files/core-functions.sh3
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