remove load undefined function

This commit is contained in:
Jakobus Schürz 2020-09-26 07:33:20 +02:00
parent cd9c2a8b60
commit 463f3e0064

View file

@ -1,14 +1,14 @@
#!/bin/bash #!/bin/bash
#type -t logerror >/dev/null || logerror() {echo blubb; } ##type -t logerror >/dev/null || logerror() {echo blubb; }
if type -t logerror > /dev/null| grep -q 'function'; then #if type -t logerror > /dev/null| grep -q 'function'; then
echo there is a logerror function # echo there is a logerror function
else #else
echo there is NO logerror function # echo there is NO logerror function
logerror () { # logerror () {
echo "$1" >&2 # echo "$1" >&2
} # }
fi #fi