From 67601c8ddfe1e3e6349e079df69d64e5ac4df7cd Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 24 Apr 2024 20:16:11 +0200 Subject: [PATCH] fix: Shellcheck --- src/install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/install.sh b/src/install.sh index 36cd652..7ecbb86 100644 --- a/src/install.sh +++ b/src/install.sh @@ -469,7 +469,7 @@ doMido() { fKill "progress.sh" if (( rc == 0 )) && [ -f "$iso" ]; then - if [ $(stat -c%s "$iso") -gt 100000000 ]; then + if [ "$(stat -c%s "$iso")" -gt 100000000 ]; then html "Download finished successfully..." && return 0 fi fi @@ -505,7 +505,7 @@ downloadFile() { fKill "progress.sh" if (( rc == 0 )) && [ -f "$iso" ]; then - if [ $(stat -c%s "$iso") -gt 100000000 ]; then + if [ "$(stat -c%s "$iso")" -gt 100000000 ]; then html "Download finished successfully..." && return 0 fi fi @@ -597,7 +597,7 @@ extractESD() { local msg="Extracting $desc bootdisk..." info "$msg" && html "$msg" - if [ $(stat -c%s "$iso") -lt 100000000 ]; then + if [ "$(stat -c%s "$iso")" -lt 100000000 ]; then error "Invalid ESD file: Size is smaller than 100 MB" && return 1 fi