From 7658ac7c89ae1b92d400b7fb206a8abea36ad120 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Wed, 16 Jan 2019 00:21:54 -0600 Subject: Remove subshell usage and save a trivial amount of time --- files/core-functions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3