summaryrefslogtreecommitdiffstats
path: root/files/core-functions.sh
diff options
context:
space:
mode:
authorDave Woodfall <dave@slackbuilds.org>2021-03-12 20:58:54 +0000
committerRobby Workman <rworkman@slackware.com>2021-03-12 19:48:41 -0600
commit0080f0810dd5293e1ae108d7f60ae638d4d547b4 (patch)
tree38e3fd08343d74514dde4576e83866cd0ae121c1 /files/core-functions.sh
parent2a9a6b25b346ec3e8343346db90e5d26476c3e94 (diff)
downloadslackpkg-0080f0810dd5293e1ae108d7f60ae638d4d547b4.tar.xz
Fix exit code for pending updates.
Diffstat (limited to 'files/core-functions.sh')
-rw-r--r--files/core-functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/core-functions.sh b/files/core-functions.sh
index db7cd5d..85ceb2c 100644
--- a/files/core-functions.sh
+++ b/files/core-functions.sh
@@ -7,7 +7,7 @@
# Clean-up tmp and lock files
#
function cleanup() {
- local retval=0
+ local retval=${PENDING_UPDATES:-0}
[ "$SPINNING" = "off" ] || tput cnorm
if [ -e $TMPDIR/error.log ]; then
retval=1