Skip to content

Commit 862843c

Browse files
fix
1 parent ff9f7e2 commit 862843c

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

src/postprocessor/create_api_endpoints.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
source $GITHUB_ACTION_PATH/src/modules/errmsg.sh
2626

2727
if [ -d "deploy/api" ]; then
28-
local ERROR_MESSAGE=($(ErrorMessage "postprocessor/create_api_endpoints.sh" "0102"))
29-
echo $ERROR_MESSAGE && exit 1
28+
local ERROR_MESSAGE=$(ErrorMessage "postprocessor/create_api_endpoints.sh" "0102")
29+
echo "$ERROR_MESSAGE" && exit 1
3030
fi
3131
mkdir -p deploy/api/
3232

src/postprocessor/modify_deployment.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@
2424

2525
source $GITHUB_ACTION_PATH/src/modules/errmsg.sh
2626
if [ -d "deploy/_just" ]; then
27-
local ERROR_MESSAGE=($(ErrorMessage "postprocessor/modify_deployment.sh" "0103"))
28-
echo $ERROR_MESSAGE && exit 1
27+
local ERROR_MESSAGE=$(ErrorMessage "postprocessor/modify_deployment.sh" "0103")
28+
echo "$ERROR_MESSAGE" && exit 1
2929
fi
3030
mkdir -p deploy/_just/
3131

3232
if [ -d "_just/dangerously-insert-files/_just" ]; then
33-
local ERROR_MESSAGE=($(ErrorMessage "postprocessor/modify_deployment.sh" "0104"))
34-
echo $ERROR_MESSAGE && exit 1
33+
local ERROR_MESSAGE=$(ErrorMessage "postprocessor/modify_deployment.sh" "0104")
34+
echo "$ERROR_MESSAGE" && exit 1
3535
fi
3636
if [ -d "_just/dangerously-insert-files/_next" ]; then
37-
local ERROR_MESSAGE=($(ErrorMessage "postprocessor/modify_deployment.sh" "0105"))
38-
echo $ERROR_MESSAGE && exit 1
37+
local ERROR_MESSAGE=$(ErrorMessage "postprocessor/modify_deployment.sh" "0105")
38+
echo "$ERROR_MESSAGE" && exit 1
3939
fi
4040

4141
echo -e "\n----------------\n\n_just Chunks:\n"

src/postprocessor/override_deployment.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ find deploy -type f -name "*.html" | while read -r html_file; do
4444
done
4545

4646
if [ -f "deploy/404.html" ]; then
47-
local ERROR_MESSAGE=($(ErrorMessage "postprocessor/override_deployment.sh" "0202"))
48-
echo $ERROR_MESSAGE
47+
local ERROR_MESSAGE=$(ErrorMessage "postprocessor/override_deployment.sh" "0202")
48+
echo "$ERROR_MESSAGE"
4949
fi
5050
if [ ! -f "deploy/404.html" ]; then
5151
cp _just/404.html deploy/404.html

src/redirect/checks.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ config=$(cat just.config.json)
2626

2727
redirect_config_=$(echo "$config" | jq -r '.redirect_config')
2828
if ! echo "$config" | jq -e '.redirect_config' > /dev/null; then
29-
local ERROR_MESSAGE=($(ErrorMessage "redirect/checks.sh" "0117"))
30-
echo $ERROR_MESSAGE && exit 1
29+
local ERROR_MESSAGE=$(ErrorMessage "redirect/checks.sh" "0117")
30+
echo "$ERROR_MESSAGE" && exit 1
3131
fi
3232

3333
validate_redirect_config() {
3434
local url=$(echo "$config" | jq -r '.redirect_config.url' > /dev/null)
3535
if [[ -z "$url" ]]; then
36-
local ERROR_MESSAGE=($(ErrorMessage "redirect/checks.sh" "0114"))
37-
echo $ERROR_MESSAGE && exit 1
36+
local ERROR_MESSAGE=$(ErrorMessage "redirect/checks.sh" "0114")
37+
echo "$ERROR_MESSAGE" && exit 1
3838
fi
3939
}
4040

@@ -46,11 +46,11 @@ validate_paths() {
4646
local url=$(echo "$path" | jq -r '.url')
4747
local path_=$(echo "$path" | jq -r '.path_')
4848
if [[ -z "$url"]]; then
49-
local ERROR_MESSAGE=($(customErrorMessage "Error" "0115" "Missing \"url\" in item #$countt in \"paths\" in \"redirect_config\" in \"module.exports\" at \"just.config.js\" file."))
50-
echo $ERROR_MESSAGE && exit 1
49+
local ERROR_MESSAGE=$(customErrorMessage "Error" "0115" "Missing \"url\" in item #$countt in \"paths\" in \"redirect_config\" in \"module.exports\" at \"just.config.js\" file.")
50+
echo "$ERROR_MESSAGE" && exit 1
5151
elif [[ -z "$path_" ]]; then
52-
local ERROR_MESSAGE=($(customErrorMessage "Error" "0116" "Missing \"path_\" in item #$countt in \"paths\" in \"redirect_config\" in \"module.exports\" at \"just.config.js\" file."))
53-
echo $ERROR_MESSAGE && exit 1
52+
local ERROR_MESSAGE= $(customErrorMessage "Error" "0116" "Missing \"path_\" in item #$countt in \"paths\" in \"redirect_config\" in \"module.exports\" at \"just.config.js\" file.")
53+
echo "$ERROR_MESSAGE" && exit 1
5454
fi
5555
countt=$((countt + 1))
5656
done

0 commit comments

Comments
 (0)