github.com/nuvolaris/nuv@v0.0.0-20240511174247-a74e3a52bfd8/tests/test_helper/fail_then_succeed.sh (about) 1 #!/bin/bash 2 3 file_path=".test_fail_then_succeed" 4 5 if [ ! -f "$file_path" ]; then 6 touch "$file_path" 7 exit 1 8 else 9 rm "$file_path" 10 exit 0 11 fi