docker-lineageos
docker-lineageos copied to clipboard
`[[ $# > 0 ]]` compares alphabetically. You meant `(( $# > 0 ))`.
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 ]]
.