remove load undefined function
This commit is contained in:
parent
cd9c2a8b60
commit
463f3e0064
1 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue