save 288 Bytes
Newer Older
1
#!/bin/sh
2

3
set -e
4

5 6 7
branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
echo "\nSaving the work in your ${branch} branch to production…\n"
git push live "$branch"
8 9

echo "\nSaved.\n"
Aral Balkan's avatar
Aral Balkan committed
10

11 12 13
if [[ "$branch" == "master" ]]; then
	echo "If you have deployment rights, you can ./deploy now.\n"
fi