Skip to content

Commit

Permalink
warp4j: Allow JARs with script header (#1)
Browse files Browse the repository at this point in the history
Co-authored-by: John Vandenberg <jayvdb@gmail.com>
Fixes guziks#2
  • Loading branch information
Cubik65536 authored Jan 9, 2023
1 parent aeffdc3 commit 14cb4c1
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 14cb4c1

Please sign in to comment.