Skip to content

Commit

Permalink
allow ctrl+c to terminate CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
msuchard committed Oct 5, 2023
1 parent 48b3571 commit e228706
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ci/test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

trap 'echo "Ctr + C!"; exit 2' SIGINT

passed=true
failedFiles=()

Expand Down Expand Up @@ -27,4 +29,4 @@ else
echo "$file failed"
done
exit -1
fi
fi

0 comments on commit e228706

Please sign in to comment.