SHA256
remove redundant $ inside arithmetic contexts
This commit is contained in:
+2
-2
@@ -20,7 +20,7 @@ function download_files() {
|
|||||||
shift
|
shift
|
||||||
curl -fsSL --output-dir "$WORK_DIR/" --remote-name "$API_ENDPOINT/raw/$path$query_params"
|
curl -fsSL --output-dir "$WORK_DIR/" --remote-name "$API_ENDPOINT/raw/$path$query_params"
|
||||||
rc=$?
|
rc=$?
|
||||||
if (( $rc != 0 )); then
|
if (( rc != 0 )); then
|
||||||
return $rc
|
return $rc
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@@ -42,7 +42,7 @@ chmod o= "$WORK_DIR/config.example"
|
|||||||
|
|
||||||
"$WORK_DIR/pbc" install
|
"$WORK_DIR/pbc" install
|
||||||
rc=$?
|
rc=$?
|
||||||
if (( $rc != 0 )); then
|
if (( rc != 0 )); then
|
||||||
echo "Error installing pbc requirements!" >&2
|
echo "Error installing pbc requirements!" >&2
|
||||||
exit $rc
|
exit $rc
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ function apt_get_install() {
|
|||||||
echo "Installing $package using package manager ..."
|
echo "Installing $package using package manager ..."
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends "$package" >/dev/null
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends "$package" >/dev/null
|
||||||
local rc=$?
|
local rc=$?
|
||||||
(( $rc != 0 )) && echo "Error installing package!" >&2
|
(( rc != 0 )) && echo "Error installing package!" >&2
|
||||||
return $rc
|
return $rc
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user