From 29e08a010d9c9ac2ef981b2351d19dcb7ccc6608 Mon Sep 17 00:00:00 2001 From: Elliott Slaughter Date: Fri, 26 Jul 2024 11:03:12 -0700 Subject: [PATCH] Better error checking in do_all.sh. --- experiment/do_all.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/experiment/do_all.sh b/experiment/do_all.sh index cb12f9c..099bf7c 100755 --- a/experiment/do_all.sh +++ b/experiment/do_all.sh @@ -4,10 +4,14 @@ machine="$1" set -e +if [[ -z ${machine} ]]; then + echo "Please specify a machine to run this experiment for." + exit 1 +fi + root_dir="$(dirname "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")")" cd "$root_dir" - source experiment/$machine/env.sh ./experiment/$machine/do_build.sh ./experiment/$machine/run_all_tests.sh