initial
This commit is contained in:
14
jar.sh
Executable file
14
jar.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p jdk17
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
echo "Usage: ./jar.sh <jar-args...>"
|
||||
echo "Examples:"
|
||||
echo " ./jar.sh tf some.jar # list contents"
|
||||
echo " ./jar.sh tf some.jar | grep ClassName # find a class"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
jar "$@"
|
||||
Reference in New Issue
Block a user