#!/bin/sh set -e rm -fr ~/Products/ledger* if ./acprep -j16 --warn proof 2>&1 | tee ~/Desktop/proof.log; then echo "Ledger proof build succeeded" else notify "Ledger proof build failed" fi