Commit 3e3c27c5 authored by Aral Balkan's avatar Aral Balkan

Updated save script so that it now saves the branch you’re on to the remote repository.

parent d448198b
#!/bin/sh
echo "\nSaving your work to production…\n"
set -e
git push live master
branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
echo "\nSaving the work in your ${branch} branch to production…\n"
git push live "$branch"
echo "\nSaved.\n"
echo "If you have deployment rights, you can ./deploy now.\n"
if [[ "$branch" == "master" ]]; then
echo "If you have deployment rights, you can ./deploy now.\n"
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment