diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-06-08 21:52:26 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-06-08 21:52:26 +0300 |
commit | 12f4e053a8767821c9c42e35ca65d187e252b89c (patch) | |
tree | 69fc9b96f50bb43c5299c7c6b9c82d4a691bf7c3 /lrpb | |
parent | 34446c246219980918d038725f7ceecefacb6bb7 (diff) |
lrpb: fix --name
Diffstat (limited to 'lrpb')
-rwxr-xr-x | lrpb | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -82,7 +82,6 @@ read_config() { value="${line#*=}" if [ "$key" = "name" ] && [ -n "$name" ]; then echoerr "${YELLOW}warning: ignoring name ${BOLD}'${value}'${RST}${YELLOW} from the config, using ${BOLD}'${name}'${RST}${YELLOW} instead${RST}" - config[name]="$name" continue fi config[$key]="$value" @@ -92,6 +91,8 @@ read_config() { fi done < <(cat "$config_file") + if [ -n "$name" ]; then config[name]="$name"; fi + [ -z "$failed" ] || exit 1 } |