We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7359f31 commit 1044b7cCopy full SHA for 1044b7c
1 file changed
assets/out
@@ -67,12 +67,14 @@ fi
67
68
cd "$working_dir"
69
70
-if [ -r "$command_file" ]; then
71
- printf '\e[92m[INFO]\e[0m Populating params from file (overwriting params in pipeline definition): %s\n' "$command_file"
72
- params=$(yq r --tojson "$command_file")
73
-else
74
- printf '\e[91m[ERROR]\e[0m invalid payload (can not find command_file: %s)\n' "$command_file"
75
- exit 1
+if [ -n "$command_file" ]; then
+ if [ -r "$command_file" ]; then
+ printf '\e[92m[INFO]\e[0m Populating params from file (overwriting params in pipeline definition): %s\n' "$command_file"
+ params=$(yq r --tojson "$command_file")
+ else
+ printf '\e[91m[ERROR]\e[0m invalid payload (can not find command_file: %s)\n' "$command_file"
76
+ exit 1
77
+ fi
78
fi
79
80
printf '\e[92m[INFO]\e[0m %s\n' "$(cf version)"
0 commit comments