mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Prevent error if unset variable is treated in utils helper
This commit is contained in:
parent
13dd9b4f89
commit
d3c8a1bb2f
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ ynh_get_plain_key() {
|
||||||
[[ "$line" =~ ^${prefix}[^#] ]] && return
|
[[ "$line" =~ ^${prefix}[^#] ]] && return
|
||||||
echo $line
|
echo $line
|
||||||
elif [[ "$line" =~ ^${prefix}${key}$ ]]; then
|
elif [[ "$line" =~ ^${prefix}${key}$ ]]; then
|
||||||
if [[ -n "$1" ]]; then
|
if [[ -n "${1:-}" ]]; then
|
||||||
prefix+="#"
|
prefix+="#"
|
||||||
key=$1
|
key=$1
|
||||||
shift
|
shift
|
||||||
|
|
Loading…
Add table
Reference in a new issue