diff --git a/install.sh b/install.sh index 7c3801d..2a9bb3a 100755 --- a/install.sh +++ b/install.sh @@ -20,7 +20,7 @@ function download_files() { shift curl -fsSL --output-dir "$WORK_DIR/" --remote-name "$API_ENDPOINT/raw/$path$query_params" rc=$? - if (( $rc != 0 )); then + if (( rc != 0 )); then return $rc fi done @@ -42,7 +42,7 @@ chmod o= "$WORK_DIR/config.example" "$WORK_DIR/pbc" install rc=$? -if (( $rc != 0 )); then +if (( rc != 0 )); then echo "Error installing pbc requirements!" >&2 exit $rc fi diff --git a/pbc b/pbc index 734530a..7369db5 100755 --- a/pbc +++ b/pbc @@ -80,7 +80,7 @@ function apt_get_install() { echo "Installing $package using package manager ..." DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends "$package" >/dev/null local rc=$? - (( $rc != 0 )) && echo "Error installing package!" >&2 + (( rc != 0 )) && echo "Error installing package!" >&2 return $rc }