All positional arguments are overridden if user pass at least one of them
This commit is contained in:
parent
92d35c0da3
commit
ce8d4c9ee5
@ -1013,7 +1013,7 @@ while :; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Load positional args from config file, if needed
|
# Load positional args from config file, if needed
|
||||||
if [[ -n "$LOAD_CONFIG" ]]; then
|
if [[ -n "$LOAD_CONFIG" && $# -eq 0 ]]; then
|
||||||
for ((i=$# + 1; i<=${#LOADED_ARGS[@]}; i++)); do
|
for ((i=$# + 1; i<=${#LOADED_ARGS[@]}; i++)); do
|
||||||
((j=i-1))
|
((j=i-1))
|
||||||
((k=i+1))
|
((k=i+1))
|
||||||
|
Loading…
Reference in New Issue
Block a user