From c816e3b409373c1f17f2991cffa35b3e1cc225fe Mon Sep 17 00:00:00 2001 From: emmett1 Date: Thu, 2 Apr 2020 16:22:27 +0800 Subject: [PATCH] update pkgbase --- pkgbase | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgbase b/pkgbase index d217ed8..941a3f9 100755 --- a/pkgbase +++ b/pkgbase @@ -28,6 +28,8 @@ Options: EOF } +error=0 + parseopt "$@" echo "Calculate packages to keep..." @@ -47,8 +49,10 @@ done done echo "This is dry-run, no real action is run!" } || { - scratch remove $yes $remove + scratch remove $yes $remove || error=1 } +} || { + echo "Already on base, nothing to remove." } -exit $? +exit $error