forked from josch/mmdebstrap
run_qemu.sh: if the run is aborted, then the last line is likely not an integer, thus compare strings instead of numbers
This commit is contained in:
parent
b3269c8809
commit
c670f51826
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ cleanup() {
|
||||||
head --lines=-1 shared/result.txt
|
head --lines=-1 shared/result.txt
|
||||||
res="$(tail --lines=1 shared/result.txt)"
|
res="$(tail --lines=1 shared/result.txt)"
|
||||||
rm shared/result.txt
|
rm shared/result.txt
|
||||||
if [ "$res" -ne 0 ]; then
|
if [ "$res" != "0" ]; then
|
||||||
# this might possibly overwrite another non-zero rv
|
# this might possibly overwrite another non-zero rv
|
||||||
rv=1
|
rv=1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue