We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7880e07 commit 6dfacb0Copy full SHA for 6dfacb0
lib/yaml_parse.sh
@@ -28,19 +28,18 @@ YamlParse__parse() {
28
}'
29
}
30
31
-
32
#################################################
33
# @param $1: The yaml file to check if there is
34
# a key
35
# @param $2: The key to check if it exists
36
-# @echo: $Ash__true if the key exists,
37
-# $Ash__false otherwise
+# @echo: $Ash__TRUE if the key exists,
+# $Ash__FALSE otherwise
38
39
YamlParse__has_key() {
40
local line=$(grep -x "^$2:.*" "$1")
41
if [[ "$line" != "" ]]; then
42
- echo "$Ash__true"
+ echo "$Ash__TRUE"
43
else
44
- echo "$Ash__false"
+ echo "$Ash__FALSE"
45
fi
46
0 commit comments