A big renaming

This commit is contained in:
Ev Bogdanov 2017-08-16 20:54:21 +03:00
parent 632eff130c
commit dea4747965
9 changed files with 24 additions and 31 deletions

18
bin/commit Executable file
View file

@ -0,0 +1,18 @@
#!/usr/bin/env bash
if [ $# -eq 0 ]; then
echo 'What do you want to commit?'
exit 1
fi
if [ -d '.git' ]; then
git add -A
git commit -m ''"$*"''
git push -u origin master
elif [ -d '.hg' ]; then
hg addremove
hg commit -m ''"$*"''
hg push
else
echo 'No .git nor .hg directory found'
fi