From 245461620da00afda5a0e11bc3d9520ee8b036a7 Mon Sep 17 00:00:00 2001 From: Ashwin Bharambe Date: Sun, 21 Jul 2024 12:18:49 -0700 Subject: [PATCH] make sure scripts always have `pipefail` --- create_config.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/create_config.sh b/create_config.sh index 27aece82b..bf3a6b28e 100644 --- a/create_config.sh +++ b/create_config.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -euo pipefail + # Function to prompt the user for input and set the variables read_input() { read -p "Enter the checkpoint directory (e.g., /home/dalton/models/Meta-Llama-3.1-8B-Instruct-20240710150000): " checkpoint_dir