File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ if [ $? -ne 0 ]; then
4242 local ERROR_MESSAGE=($( ErrorMessage " run.sh" " 0109" ) )
4343 echo $ERROR_MESSAGE && exit 1
4444fi
45- echo " Parsed CONFIG_JSON : $CONFIG_JSON " # debug
45+ echo " Parsed just.config.js module.exports : $CONFIG_JSON " # debug
4646echo " $CONFIG_JSON " > " $CONFIG_DATA "
4747
4848if [ -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
9292elif [ " $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
96102fi
You can’t perform that action at this time.
0 commit comments