mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Just use exit numbers instead of truth values for return codes
This commit is contained in:
parent
295852d7b1
commit
ff9db2a14a
1 changed files with 3 additions and 3 deletions
|
@ -1303,7 +1303,7 @@ __check_dpkg_architecture() {
|
|||
fi
|
||||
|
||||
__REPO_ARCH="$DPKG_ARCHITECTURE"
|
||||
__return_code=${BS_TRUE}
|
||||
__return_code=0
|
||||
|
||||
case $DPKG_ARCHITECTURE in
|
||||
"i386")
|
||||
|
@ -1317,14 +1317,14 @@ __check_dpkg_architecture() {
|
|||
"armhf")
|
||||
if [ "$DISTRO_NAME_L" == "ubuntu" ] || [ "$DISTRO_MAJOR_VERSION" -lt 8 ]; then
|
||||
error_msg="Support for armhf packages at $_REPO_URL is limited to Debian/Raspbian 8 platforms."
|
||||
__return_code=${BS_FALSE}
|
||||
__return_code=1
|
||||
else
|
||||
error_msg=""
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
error_msg="$_REPO_URL doesn't have packages for your system architecture: $DPKG_ARCHITECTURE."
|
||||
__return_code=${BS_TRUE}
|
||||
__return_code=1
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue