summaryrefslogtreecommitdiff
path: root/lrpb
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-06-08 21:52:26 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-06-08 21:52:26 +0300
commit12f4e053a8767821c9c42e35ca65d187e252b89c (patch)
tree69fc9b96f50bb43c5299c7c6b9c82d4a691bf7c3 /lrpb
parent34446c246219980918d038725f7ceecefacb6bb7 (diff)
lrpb: fix --name
Diffstat (limited to 'lrpb')
-rwxr-xr-xlrpb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lrpb b/lrpb
index 5515b5c..0639bfb 100755
--- a/lrpb
+++ b/lrpb
@@ -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
}