better argument parsing
This commit is contained in:
parent
8edbd95461
commit
029044580e
|
@ -70,7 +70,7 @@ for ((i = 1; i < ${#tarballs[@]}; i += 2)); do
|
|||
if [[ "$arch" == "core-arm64" ]]; then
|
||||
arch="arm64"
|
||||
fi
|
||||
if [ -z "$1" ] || [[ "$arch" == "$1" ]]; then
|
||||
if [ $# -eq 0 ] || (( $@[(Ie)$arch])); then
|
||||
echo "Building for $arch..."
|
||||
dir=$(mktemp -d)
|
||||
current_dir=$PWD
|
||||
|
|
|
@ -63,7 +63,7 @@ for ((i = 1; i < ${#tarballs[@]}; i += 2)); do
|
|||
if [[ "$arch" == "core-arm64" ]]; then
|
||||
arch="arm64"
|
||||
fi
|
||||
if [ -z "$1" ] || [[ "$arch" == "$1" ]]; then
|
||||
if [ $# -eq 0 ] || (( $@[(Ie)$arch])); then
|
||||
echo "Building for $arch..."
|
||||
dir=$(mktemp -d)
|
||||
current_dir=$PWD
|
||||
|
|
|
@ -68,7 +68,7 @@ for ((i = 1; i < ${#tarballs[@]}; i += 2)); do
|
|||
if [[ "$arch" == "core-arm64" ]]; then
|
||||
arch="arm64"
|
||||
fi
|
||||
if [ -z "$1" ] || [[ "$arch" == "$1" ]]; then
|
||||
if [ $# -eq 0 ] || (( $@[(Ie)$arch])); then
|
||||
echo "Building for $arch..."
|
||||
dir=$(mktemp -d)
|
||||
current_dir=$PWD
|
||||
|
|
|
@ -68,7 +68,7 @@ for ((i = 1; i < ${#tarballs[@]}; i += 2)); do
|
|||
if [[ "$arch" == "core-arm64" ]]; then
|
||||
arch="arm64"
|
||||
fi
|
||||
if [ -z "$1" ] || [[ "$arch" == "$1" ]]; then
|
||||
if [ $# -eq 0 ] || (( $@[(Ie)$arch])); then
|
||||
echo "Building for $arch..."
|
||||
dir=$(mktemp -d)
|
||||
current_dir=$PWD
|
||||
|
|
Loading…
Reference in a new issue