Remove subshell usage and save a trivial amount of time

This commit is contained in:
Robby Workman 2019-01-16 00:21:54 -06:00
parent c7216fb599
commit 7658ac7c89

View file

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