diff --git a/repo.sh b/repo.sh index c6c8d8f5383b85a1510c55060a10e995abcdc2f5..c738e234835072d6d1a09bbf617ecac2e0a2b555 100755 --- a/repo.sh +++ b/repo.sh @@ -4,18 +4,18 @@ shopt -s nullglob source config.sh -recipes=() +recipes="" for arg in "${@:1}" do if [ "$arg" == "--debug" ] then DEBUG=--debug else - recipes[${#recipes[@]}]="$arg" + recipes+=" $arg" fi done -if [ ${#recipes[@]} = 0 ] +if [ "$recipes" == "" ] then recipes="$(ls -1 recipes)" fi