implement functionExists()
This commit is contained in:
parent
d2b95c940a
commit
1431fad33b
|
@ -72,6 +72,15 @@ function fail() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Checks if the given function has been defined
|
||||||
|
# Parameters: %function%
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
function functionExists() {
|
||||||
|
type ${1} 2>/dev/null | grep -q "is a function"
|
||||||
|
return ${?}
|
||||||
|
}
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Checks whether a defined variable contain specified element or not
|
# Checks whether a defined variable contain specified element or not
|
||||||
# Parameters: %element% %variable%
|
# Parameters: %element% %variable%
|
||||||
|
|
|
@ -2,3 +2,8 @@ EZMOD_DESCRIPTION="Sample module for learning and testing purposes"
|
||||||
EZMOD_COMPATIBILITY="ezbuild ezsync"
|
EZMOD_COMPATIBILITY="ezbuild ezsync"
|
||||||
EZMOD_AUTHOR="Rafal Kupiec"
|
EZMOD_AUTHOR="Rafal Kupiec"
|
||||||
EZMOD_VERSION="0.1"
|
EZMOD_VERSION="0.1"
|
||||||
|
|
||||||
|
ezsync_postsync() {
|
||||||
|
printWarn "fdgdfs"
|
||||||
|
# return 1
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue