#!/bin/bash echo "use prepatch.sh instead (which now uses and requires branch name)" exit 0 master=~/minetest/games/Bucket_Game branches=~/git/1.pull-requests/Bucket_Game-branches if [ ! -d "$branches" ]; then mkdir -p "$branches" || customExit "Failed to mkdir -p '$branches'" echo "Created '$branches'" fi customExit() { errcode=1 echo echo "ERROR:" echo "$1" echo echo if [ ! -z "$2" ]; then errcode=$2; fi exit $errcode } usage() { cat<