fix: Java archive recognition

This commit is contained in:
Serge Guzik 2019-02-13 13:05:55 +02:00
parent 6f18b74ac6
commit 88ef34cc6b

2
warp4j
View File

@ -218,7 +218,7 @@ if [[ ! -e $JAR ]]; then
fi fi
# checking file is actually java archive # checking file is actually java archive
if [[ $(file $JAR) != *"Zip"* ]] || if [[ $(file $JAR) != *"archive"* ]] || # it could be "Java archive data" or "Zip archive data"
[[ $JAR_EXTENSION_LOWERCASE != "jar" ]]; then [[ $JAR_EXTENSION_LOWERCASE != "jar" ]]; then
echo "Error: File \"$JAR\" is not a java archive" >&2 echo "Error: File \"$JAR\" is not a java archive" >&2
exit 1 exit 1