1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-07 06:55:11 +01:00

Rename scripts to versions without extension, making them more versatile

and clean
This commit is contained in:
Michiel Scholten
2014-07-13 14:12:20 +02:00
parent 1dcd02a98b
commit 953a0c38a1
4 changed files with 0 additions and 0 deletions

22
bin/git_autosave Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
if [ -n "$1" ]; then
FIRSTFILE=$1
#echo $!
GITDIR=$(dirname ${FIRSTFILE})
#echo $GITDIR
cd $GITDIR
DATETIME=`date +%Y%m%d\ %H:%M:%S`
#echo $DATETIME
#git pull
RESULT=`git commit $* -m "Autosave at $DATETIME"`
echo $RESULT
#zenity --info --text=$RESULT
#echo $?
#echo "git commit $* -m 'Autosave at $DATETIME'"
git push
else
echo "Provide one or more file paths to autosave"
zenity --error --text="Provide one or more file paths to autosave"
fi