From ce8d4c9ee56dcdcf9d9a853542090c34118ee088 Mon Sep 17 00:00:00 2001 From: oblique Date: Sun, 17 May 2015 19:08:18 +0300 Subject: [PATCH] All positional arguments are overridden if user pass at least one of them --- create_ap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_ap b/create_ap index 9a50548..b78693e 100755 --- a/create_ap +++ b/create_ap @@ -1013,7 +1013,7 @@ while :; do done # 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 ((j=i-1)) ((k=i+1))