mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-14 21:10:11 +01:00
Double verification of the string before invoking it.
This commit is contained in:
parent
0a80afc550
commit
3ccdcb4140
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ source /lib/upgrade/iopsys.sh
|
|||
|
||||
# only call function if it exists
|
||||
function_call() {
|
||||
if type "$1" 2>/dev/null >/dev/null
|
||||
if [ -n "$1" ] && type "$1" 2>/dev/null >/dev/null
|
||||
then
|
||||
$1 "$@" || exit
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue