From 2fc6b9294720ce2c5791e045d65e90a57b1f454e Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Mon, 26 Oct 2020 16:04:54 -0700 Subject: [PATCH] Remove support for running multiple commands in one -builder invocation --- bin/kaleidoscope-builder | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/bin/kaleidoscope-builder b/bin/kaleidoscope-builder index d061c948..a8d3bcb7 100755 --- a/bin/kaleidoscope-builder +++ b/bin/kaleidoscope-builder @@ -513,24 +513,16 @@ done # shellcheck disable=SC2086 set -- ${cmds} +if [ $# -eq 2 ]; then + SKETCH="$1" + shift +fi if [ $# -eq 1 ]; then cmd="$(echo "$1" | tr '-' '_')" ${cmd} exit $? +else + "You passed more than two arguments to $0" + help + exit -1 fi - -SKETCH="$1" -shift - - -cmds="" - -# shellcheck disable=2034 -for i in $(seq 1 $#); do - cmds="${cmds} $(echo "$1" | tr '-' '_')" - shift -done - -for cmd in ${cmds}; do - ${cmd} -done