You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local ERROR_MESSAGE=$(ErrorMessage "redirect/checks.sh""0114")
38
38
echo -e "$ERROR_MESSAGE"&&exit 1
39
39
fi
@@ -44,15 +44,16 @@ validate_paths() {
44
44
if [[ -n"$paths" ]];then
45
45
local countt=0
46
46
forpathin$paths;do
47
-
local url=$(echo "$path"| jq -r '.url')
48
-
local path_=$(echo "$path"| jq -r '.path_')
49
-
if [[ -z"$url" ]];then
47
+
if!echo"$path"| jq -e '.url'> /dev/null;then
50
48
local ERROR_MESSAGE=$(customErrorMessage "Error""0115""Missing \"url\" in item #$countt in \"paths\" in \"redirect_config\" in \"module.exports\" at \"just.config.js\" file.")
51
49
echo -e "$_RED$ERROR_MESSAGE$_RESET"&&exit 1
52
-
elif [[ -z"$path_" ]];then
53
-
local ERROR_MESSAGE= $(customErrorMessage "Error""0116""Missing \"path_\" in item #$countt in \"paths\" in \"redirect_config\" in \"module.exports\" at \"just.config.js\" file.")
50
+
fi
51
+
52
+
if!echo"$path"| jq -e '.path_'> /dev/null;then
53
+
local ERROR_MESSAGE=$(customErrorMessage "Error""0116""Missing \"path_\" in item #$countt in \"paths\" in \"redirect_config\" in \"module.exports\" at \"just.config.js\" file.")
0 commit comments