mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-21 20:34:17 +08:00
Fix repo script
This commit is contained in:
parent
7e8c72d80d
commit
ff5df44151
6
repo.sh
6
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user