Remove support for running multiple commands in one -builder invocation

tmp/arduino-cli-pre-rebase
Jesse Vincent 4 years ago
parent 1b13caac7d
commit 2fc6b92947
No known key found for this signature in database
GPG Key ID: CC228463465E40BC

@ -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

Loading…
Cancel
Save