Force decimal version numbers in install script (#1088)

Co-authored-by: Alex Chen <Cnly@users.noreply.github.com>
This commit is contained in:
Grazfather 2021-12-04 09:54:41 -05:00 committed by GitHub
parent e99a3ca7d7
commit 340b18dcf6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,7 +91,7 @@ esac
IFS='.' read -ra VER <<< "$version"
vernum=$(printf "%03d%03d%03d" "${VER[0]}" "${VER[1]}" "${VER[2]}")
if [[ $vernum -le 000002013 ]]; then
if [[ 10#$vernum -le 10#000002013 ]]; then
ext="zip"
util="$(which unzip) -qqo"
else