We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3d02f7 commit 5c51f59Copy full SHA for 5c51f59
scripts/base/ampstart.sh
@@ -28,7 +28,11 @@ chown -R amp:amp /home/amp 2>/dev/null
28
[ -f /AMP/AMP_Linux_${ARCH} ] && chmod +x /AMP/AMP_Linux_${ARCH}
29
30
# Install extra dependencies if needed
31
-mapfile -t REQUIRED_DEPS < <(jq -r '.[]' <<<"${AMP_CONTAINER_DEPS}")
+REQUIRED_DEPS=()
32
+if [[ -n "${AMP_CONTAINER_DEPS:-}" ]]; then
33
+ # shellcheck disable=SC2207
34
+ REQUIRED_DEPS=($(jq -r '.[]? | select(type=="string" and length>0)' <<<"${AMP_CONTAINER_DEPS}" || echo))
35
+fi
36
if ((${#REQUIRED_DEPS[@]})); then
37
echo "[Info] Installing extra dependencies..."
38
DEBIAN_FRONTEND="noninteractive"
0 commit comments