Skip to content

Commit

Permalink
warp4j: Allow JARs with script header
Browse files Browse the repository at this point in the history
Fixes guziks#2
  • Loading branch information
jayvdb committed Apr 25, 2022
1 parent aeffdc3 commit 72b620f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion warp4j
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,8 @@ fi

# checking file is actually java archive
if ([[ $(file $JAR) != *"Java"* ]] && # it could be "Java archive data" or "Java Jar file data (zip)"
[[ $(file $JAR) != *"Zip"* ]]) || # or "Zip archive data"
[[ $(file $JAR) != *"Zip"* ]] && # or "Zip archive data"
[[ $(file $JAR) != *"POSIX shell script executable (binary data)"* ]]) || # or JAR embedded in POSIX script
[[ $JAR_EXTENSION_LOWERCASE != "jar" ]]; then
fail_with "File \"$JAR\" is not a java archive"
fi
Expand Down

0 comments on commit 72b620f

Please sign in to comment.