docker-lineageos icon indicating copy to clipboard operation
docker-lineageos copied to clipboard

`[[ $# > 0 ]]` compares alphabetically. You meant `(( $# > 0 ))`.

Open jolmg opened this issue 7 months ago • 0 comments

Was just browsing through and noticed:

https://github.com/jfloff/docker-lineageos/blob/f55847312f75cc733ee17eec8adb8c3bd39712de/lineageos#L30

FYI:

$ if [[ 3 > 22 ]]; then echo true; else echo false; fi
true

True, because 3 comes after 22, alphabetically. For numerical comparison, you could use (( x > y )) or [[ $x -gt $y ]].

jolmg avatar Jul 05 '24 22:07 jolmg