fix: Java archive recognition
This commit is contained in:
parent
6f18b74ac6
commit
88ef34cc6b
2
warp4j
2
warp4j
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user