From 44a5ab8e6998df0beb6f293b3607262db53aa8c7 Mon Sep 17 00:00:00 2001 From: Ashu <11219262+ashutosh16@users.noreply.github.com> Date: Thu, 10 Oct 2024 11:15:11 -0700 Subject: [PATCH] fix the installer issue when vars not define (#12) * fix the installer issue when vars not define Signed-off-by: ashutosh16 <11219262+ashutosh16@users.noreply.github.com> * fix the installer issue when vars not define Signed-off-by: ashutosh16 <11219262+ashutosh16@users.noreply.github.com> --------- Signed-off-by: ashutosh16 <11219262+ashutosh16@users.noreply.github.com> --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 7596035..f1e7ffa 100755 --- a/install.sh +++ b/install.sh @@ -113,7 +113,11 @@ if [ -f $ext_file ]; then rm $ext_file fi -ext_vars=$(echo "$EXTENSION_JS_VARS" | jq -c '.') +ext_vars="${EXTENSION_JS_VARS:-}" +if [ -n "${ext_vars}" ]; then + ext_vars=$(echo "$ext_vars" | jq -c '.') +fi + download_extension install_extension