#!/bin/bash # Check if the jar has been built. if [ ! -e target/bitcoinj-tools-*.jar ]; then echo "Compiling WalletTool to a JAR" mvn -q package -DskipTests fi java -jar target/bitcoinj-tools-*.jar $*