mirror of
https://github.com/dockur/windows.git
synced 2025-10-28 11:45:50 +00:00
fix: Shellcheck
This commit is contained in:
parent
465e919cc4
commit
67601c8ddf
1 changed files with 3 additions and 3 deletions
|
|
@ -469,7 +469,7 @@ doMido() {
|
||||||
fKill "progress.sh"
|
fKill "progress.sh"
|
||||||
|
|
||||||
if (( rc == 0 )) && [ -f "$iso" ]; then
|
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
|
html "Download finished successfully..." && return 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
@ -505,7 +505,7 @@ downloadFile() {
|
||||||
fKill "progress.sh"
|
fKill "progress.sh"
|
||||||
|
|
||||||
if (( rc == 0 )) && [ -f "$iso" ]; then
|
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
|
html "Download finished successfully..." && return 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
@ -597,7 +597,7 @@ extractESD() {
|
||||||
local msg="Extracting $desc bootdisk..."
|
local msg="Extracting $desc bootdisk..."
|
||||||
info "$msg" && html "$msg"
|
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
|
error "Invalid ESD file: Size is smaller than 100 MB" && return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue