diff --git a/src/install.sh b/src/install.sh index 6d4a3b2..82943f0 100644 --- a/src/install.sh +++ b/src/install.sh @@ -211,6 +211,13 @@ generateSerial() { return 0 } +if [[ "${VERSION}" == \"*\" || "${VERSION}" == \'*\' ]]; then + VERSION="${VERSION:1:-1}" +fi + +VERSION=`expr "$VERSION" : "^\ *\(.*[^ ]\)\ *$"` +[ -z "$VERSION" ] && VERSION="13" + if [ ! -f "$BASE_IMG" ] || [ ! -s "$BASE_IMG" ]; then ! download "$VERSION" && exit 34 fi