|
@@ -29,14 +29,14 @@
|
29
|
29
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
30
|
30
|
|
31
|
31
|
function function_check {
|
32
|
|
- if [ ! "$(type ${1} 2>/dev/null)" ]; then
|
|
32
|
+ if [ ! "$(type "${1}" 2>/dev/null)" ]; then
|
33
|
33
|
echo $"Dependency error: The function ${1} has not been defined"
|
34
|
34
|
exit 72528
|
35
|
35
|
fi
|
36
|
36
|
}
|
37
|
37
|
|
38
|
38
|
function function_exists {
|
39
|
|
- if [ ! "$(type ${1} 2>/dev/null)" ]; then
|
|
39
|
+ if [ ! "$(type "${1}" 2>/dev/null)" ]; then
|
40
|
40
|
echo "0"
|
41
|
41
|
else
|
42
|
42
|
echo "1"
|