X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0ef6eb57cba33e5b35d847f72ddc184acbd70aa6..14b14c8a57ef2e2563da56416371e5e3dc8f2067:/build/run-tests.sh diff --git a/build/run-tests.sh b/build/run-tests.sh index 70aec2aa14..ff6ead0fac 100755 --- a/build/run-tests.sh +++ b/build/run-tests.sh @@ -1266,15 +1266,11 @@ else while read -p 'What next? ' -e -i "$nextcmd" nextcmd; do history -s "$nextcmd" history -w - read verb target opt1 opts <<<"${nextcmd}" count=1 - if [[ "$verb" =~ ^[0-9]+$ ]]; then - count=$verb - verb=${target} - target=$opt1 - else - opts="$opt1 $opts" + if [[ "${nextcmd}" =~ ^[0-9] ]]; then + read count nextcmd <<<"${nextcmd}" fi + read verb target opts <<<"${nextcmd}" target="${target%/}" target="${target/\/:/:}" case "${verb}" in