diff --git a/iopupgrade/files/sbin/iopu_chroot b/iopupgrade/files/sbin/iopu_chroot index 3dbdcab3e..98f6c7c3b 100755 --- a/iopupgrade/files/sbin/iopu_chroot +++ b/iopupgrade/files/sbin/iopu_chroot @@ -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