Skip to content

Commit 5feb782

Browse files
fix
1 parent ac878c7 commit 5feb782

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/run.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if [ $? -ne 0 ]; then
4242
local ERROR_MESSAGE=($(ErrorMessage "run.sh" "0109"))
4343
echo $ERROR_MESSAGE && exit 1
4444
fi
45-
echo "Parsed CONFIG_JSON: $CONFIG_JSON" # debug
45+
echo "Parsed just.config.js module.exports: $CONFIG_JSON" # debug
4646
echo "$CONFIG_JSON" > "$CONFIG_DATA"
4747

4848
if [ -z "$(echo "$CONFIG_JSON" | jq -r '.module.exports')" ]; then
@@ -90,7 +90,13 @@ if [ "$TYPE" == "postprocessor" ]; then
9090
bash $GITHUB_ACTION_PATH/src/postprocessor/override_deployment.sh && \
9191
bash $GITHUB_ACTION_PATH/src/postprocessor/build_map.sh
9292
elif [ "$TYPE" == "redirect" ]; then
93-
sudo apt update
94-
sudo apt install -y nodejs npm
93+
mkdir -p deploy/_just
94+
sudo apt update -qq && sudo apt install -y nodejs npm > /dev/null 2>&1
95+
if [ $? -ne 0 ]; then
96+
local ERROR_MESSAGE=($(ErrorMessage "run.sh" "0205"))
97+
echo $ERROR_MESSAGE
98+
sudo apt update
99+
sudo apt install -y nodejs npm
100+
fi
95101
node $GITHUB_ACTION_PATH/src/redirect/index.js
96102
fi

0 commit comments

Comments
 (0)