Skip to content

Instantly share code, notes, and snippets.

@pajswigger
Created January 29, 2018 11:34
Show Gist options
  • Save pajswigger/7a63439ebf3a6c790cae9f297088e484 to your computer and use it in GitHub Desktop.
Save pajswigger/7a63439ebf3a6c790cae9f297088e484 to your computer and use it in GitHub Desktop.
#!/bin/bash
orig=$PWD
file=`basename $1`
mkdir -p "/tmp/$file"
cd "/tmp/$file"
jar -xf "$orig/$1"
find . -name \*.jar | while read JAR; do
jar -u0f "$orig/$1" $JAR
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment