From cdce816fd22ee47307f513cc8798a3f3705cdc7e Mon Sep 17 00:00:00 2001 From: Ronny Nilsson Date: Wed, 4 Dec 2019 15:04:31 +0100 Subject: [PATCH] iopupgrade: The variables are written as integers and thus should be read as integers. --- iopupgrade/files/sbin/iopu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iopupgrade/files/sbin/iopu b/iopupgrade/files/sbin/iopu index b3f9f8673..9a3c161a5 100755 --- a/iopupgrade/files/sbin/iopu +++ b/iopupgrade/files/sbin/iopu @@ -52,14 +52,14 @@ function log { # anyhting it calls as stdout/stderr might no longer exist function finish { - if [ "$run_cleanup" == "1" ] + if [ $run_cleanup -eq 1 ] then function_call upd_cleanup log "" fi - if [ "$run_mount_cleanup" == "1" ] + if [ $run_mount_cleanup -eq 1 ] then log "Cleaning up after mount" umount_newroot