mirror of
https://github.com/rworkman/slackpkg
synced 2025-01-30 20:35:00 +01:00
Remove subshell usage and save a trivial amount of time
This commit is contained in:
parent
c7216fb599
commit
7658ac7c89
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue