Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
#!/bin/bash
if [ $# == 0 ]; then
echo "wrong # of args"
exit 1
fi
path=`pwd`
name=`basename $path`
commit()
{
n=`find . -name *swp | wc -l`
if [ $n -ne 0 ]; then
echo 'close all vim instances, plz...'
exit 1
fi
read -p "Commit message: " -e msg
git add ./* && git commit -m "$msg" && git push
}
case $1 in
'commit') commit
;;
*) echo 'invalid option'
;;
esac
07a99ac44This file is pinned to the selected release. Download the original to open it in your design tool.