Skip to content

Commit 7cde777

Browse files
haya14busaclaude
andcommitted
Add error handling to script with set -e flag
Ensure script exits immediately on any command failure by adding the -e flag to the set command. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent be3f978 commit 7cde777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
set -x
2+
set -ex
33

44
cd "${GITHUB_WORKSPACE}" || exit
55

0 commit comments

Comments
 (0)