Skip to content

Commit 6cad357

Browse files
committed
[fix] : Fix undefined variable $2
1 parent d2b49e9 commit 6cad357

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/parsearg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ parsearg(){
4949
local _args=("$@") _noarg=()
5050
local _current="" _arg="" _var="" _setarg=false
5151
while [[ -n "${1-""}" ]]; do
52-
_current="$1" _arg="$2" _var="" _setarg=false
52+
_current="$1" _arg="${2-""}" _var="" _setarg=false
5353

5454
if [[ "$_current" = "--" ]]; then
5555
shift 1

0 commit comments

Comments
 (0)