make sure scripts always have pipefail

This commit is contained in:
Ashwin Bharambe 2024-07-21 12:18:49 -07:00
parent c9f33d8f68
commit 245461620d

View file

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