diff --git a/src/install.sh b/src/install.sh index 863f65e..cb0bb4d 100644 --- a/src/install.sh +++ b/src/install.sh @@ -306,7 +306,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 @@ -384,7 +384,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