From 3ccdcb4140b578de5b60bf8ddd3b00e0a619dfe2 Mon Sep 17 00:00:00 2001 From: Ronny Nilsson Date: Tue, 3 Dec 2019 15:38:58 +0100 Subject: [PATCH] Double verification of the string before invoking it. --- iopupgrade/files/sbin/iopu_chroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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