Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
exec < /dev/tty
if [ ! -f ./system.txt ]; then
echo "File not found!"
read -p "Status of the system (local,dev or live)? [n]" -r
echo $REPLY > ./system.txt
fi
dumpname=`cat system.txt`
read -p "Add DB dump to commit? [n]" -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
eval "n98 db:dump ./$dumpname.sql"
eval "git add ./$dumpname.sql"
echo "xx"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.