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
#type -t logerror >/dev/null || logerror() {echo blubb; }
if type -t logerror > /dev/null| grep -q 'function'; then
echo there is a logerror function
else
echo there is NO logerror function
logerror () {
echo "$1" >&2
}
fi
##type -t logerror >/dev/null || logerror() {echo blubb; }
#if type -t logerror > /dev/null| grep -q 'function'; then
# echo there is a logerror function
#else
# echo there is NO logerror function
# logerror () {
# echo "$1" >&2
# }
#fi