From 01578696cb5b8fc18f36f1b639399c9c3c0ead36 Mon Sep 17 00:00:00 2001 From: Simon Doppler Date: Tue, 8 Aug 2017 12:37:59 +0200 Subject: All architecture selection --- al32-mktorrent.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'al32-mktorrent.sh') diff --git a/al32-mktorrent.sh b/al32-mktorrent.sh index b5aaff7..68ea265 100644 --- a/al32-mktorrent.sh +++ b/al32-mktorrent.sh @@ -17,7 +17,7 @@ set -euo pipefail function join_by { local IFS="$1"; shift; echo "$*"; } usage () { - echo "Usage: $0 [-d date]" + echo "Usage: $0 [-d date] [arch...]" } fg_green="\033[32m" @@ -112,6 +112,10 @@ while getopts "d:h" o; do done shift $((OPTIND-1)) +if [ "$#" -gt 0 ] ; then + architectures=($@) +fi + [ -z "$iso_date" ] && read -r -p "Date of the ISO: " iso_date for a in "${architectures[@]}" ; do -- cgit v1.2.3