mirror of
https://github.com/zuno/slackpkgplus
synced 2024-12-26 09:58:43 +01:00
- According to slackpkg 15.0.8 new exit codes was added in slackpkg+ too:
0 Successful Slackpkg execution. 1 Something wrong happened. 2 Something fatal happened. (not available in slackpkg) 20 No package found to be downloaded, installed, reinstalled, upgraded or removed. 50 Slackpkg itself was upgraded and you need to re-run it. 100 There are pending updates. Please: do not ignore the fatal output!
This commit is contained in:
parent
a79d13edd9
commit
8e7b8c212b
1 changed files with 4 additions and 3 deletions
|
@ -171,7 +171,8 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
||||||
# Get the current exit-code so that we can check if cleanup is
|
# Get the current exit-code so that we can check if cleanup is
|
||||||
# called in response of a CTRL+C (ie. $?=130) or not.
|
# called in response of a CTRL+C (ie. $?=130) or not.
|
||||||
local lEcode=$?
|
local lEcode=$?
|
||||||
local retval=${PENDING_UPDATES:-0}
|
local retval=${EXIT_CODE:-0}
|
||||||
|
[ ! -z "$PENDING_UPDATES" ]&&retval=$PENDING_UPDATES
|
||||||
|
|
||||||
if [ "$CMD" == "info" ];then
|
if [ "$CMD" == "info" ];then
|
||||||
DETAILED_INFO=${DETAILED_INFO:-none}
|
DETAILED_INFO=${DETAILED_INFO:-none}
|
||||||
|
@ -1924,7 +1925,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
||||||
cleanup
|
cleanup
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SPKGPLUS_VERSION="1.7.8"
|
SPKGPLUS_VERSION="1.7.9"
|
||||||
VERSION="$VERSION / slackpkg+ $SPKGPLUS_VERSION"
|
VERSION="$VERSION / slackpkg+ $SPKGPLUS_VERSION"
|
||||||
|
|
||||||
if [ ${VERSION:0:4} == "2.82" ];then
|
if [ ${VERSION:0:4} == "2.82" ];then
|
||||||
|
@ -2461,7 +2462,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
||||||
|
|
||||||
if $UPDATES ; then
|
if $UPDATES ; then
|
||||||
echo "Slackpkg: Updated packages are available since last check." >&2
|
echo "Slackpkg: Updated packages are available since last check." >&2
|
||||||
PENDING_UPDATES=1
|
EXIT_CODE=100
|
||||||
|
|
||||||
printf "\n [ %-24s ] [ %-20s ]\n" "Repository" "Status"
|
printf "\n [ %-24s ] [ %-20s ]\n" "Repository" "Status"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue