Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions script/yaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

parse_yaml() {
local yaml_file=$1
local prefix=$2
local prefix=${2:-}
local s
local w
local fs
Expand Down Expand Up @@ -71,6 +71,6 @@ create_variables() {

# Execute parse_yaml() direct from command line

if [ "x" != "x${1}" ] && [ "x--debug" != "x${1}" ]; then
parse_yaml "${1}" "${2}"
if [ "x" != "x${1:-}" ] && [ "x--debug" != "x${1:-}" ]; then
parse_yaml "${1}" "${2:-}"
fi