diff --git a/scripts/utils.sh b/scripts/utils.sh index 68837e8..c1754bc 100644 --- a/scripts/utils.sh +++ b/scripts/utils.sh @@ -192,7 +192,9 @@ require_file() { # Usage: ensure_file_exists "/path/to/file" ensure_file_exists() { local file="$1" - [[ ! -f "$file" ]] && touch "$file" + if [[ ! -f "$file" ]]; then + touch "$file" + fi } #=============================================================================