#!/bin/bash restoreDir="$HOME/.borgmatic/restore" hook_check() { : } hook_pre() { mkdir -p "$restoreDir" || exit 1 pushd "$restoreDir" || exit 2 brew bundle dump || exit 3 cat > restore.sh <