#!/bin/bash

policy="\n\n[Policy] Never push code directly to the "$protected_branch" branch! (Prevented with pre-push hook.)\n\n"

BRANCH=$(git rev-parse --abbrev-ref HEAD)

if [ "$BRANCH" = "staging" ]; then
    npm run restart:staging:pm
fi

do_exit(){
  echo -e $policy
  exit 1
}
unset do_exit

exit 0