The problem is make_avalaible() and make_unavailable().
Parentheses are not permitted when calling a function. For instance this script produces syntax errors:
Code: Select all
#!/bin/bash
Func1 () {
echo "Heck, yeah"
}
Func2 () {
echo "Watch your language. This is a family forum."
}
echo "======================================="
echo "Let's try a function or 2."
Func1()
Func2()
Code: Select all
#!/bin/bash
Func1 () {
echo "Heck, yeah"
}
Func2 () {
echo "Watch your language. This is a family forum."
}
echo "======================================="
echo "Let's try a function or 2."
Func1
Func2