remove failuretrap

This commit is contained in:
Jakobus Schürz 2020-09-21 18:02:07 +02:00
parent 0b24997970
commit 495e22d0d9

View file

@ -1,12 +1,12 @@
#!/bin/bash
#debug
failure() {
local lineno=$1
local msg=$2
echo "Failed at $lineno: $msg"
}
trap 'failure ${LINENO} "$BASH_COMMAND"' ERR
#failure() {
# local lineno=$1
# local msg=$2
# echo "Failed at $lineno: $msg"
#}
#trap 'failure ${LINENO} "$BASH_COMMAND"' ERR
# set SSHS to false, if not set