Skip to content

Commit

Permalink
fix: Shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Apr 24, 2024
1 parent 465e919 commit 67601c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 67601c8

Please sign in to comment.