We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0e87b6 commit 3313e92Copy full SHA for 3313e92
1 file changed
build-and-test.sh
@@ -1,6 +1,14 @@
1
#!/usr/bin/env bash
2
3
-set -xe
+set -eE -o functrace
4
+
5
+failure() {
6
+ local lineno=$1
7
+ local msg=$2
8
+ echo "Failed at $lineno: $msg"
9
+ sudo rm user1999 -rf
10
+}
11
+trap 'failure ${LINENO} "$BASH_COMMAND"' ERR
12
13
docker buildx build --platform=linux/amd64 --load -t thecodingmachine/nodejs:${TAG} -f Dockerfile.${VARIANT} .
14
0 commit comments