Skip to content

Commit

Permalink
eturnalctl: Don't stumble over unreadable config
Browse files Browse the repository at this point in the history
  • Loading branch information
weiss committed Oct 10, 2023
1 parent cf68bd3 commit 860dc86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion overlay/eturnalctl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ get_option()
_key="$1"
_val=$(sed -n \
"s/^[[:blank:]]\\{1,\\}$_key:[[:blank:]]*\"\\?\\([[:alnum:][:blank:]\\/._+-]*[[:alnum:]\\/._+-]\\)\"\\?.*/\\1/p" \
"$eturnal_yml")
"$eturnal_yml" 2>'/dev/null' || :)

printf '%s' "$_val"
}
Expand Down

0 comments on commit 860dc86

Please sign in to comment.