moved old stuff to archive and removed repo option in journal.sh
This commit is contained in:
parent
fbed644944
commit
18b7f8e039
|
@ -14,8 +14,6 @@
|
||||||
# journal edit
|
# journal edit
|
||||||
|
|
||||||
|
|
||||||
#set repopath
|
|
||||||
repopath="/home/david/docs"
|
|
||||||
|
|
||||||
#check if output file is given as first option
|
#check if output file is given as first option
|
||||||
if [ -z $1 ]; then
|
if [ -z $1 ]; then
|
||||||
|
@ -33,12 +31,6 @@ else
|
||||||
elif [ $2 = "edit" ]; then
|
elif [ $2 = "edit" ]; then
|
||||||
vim $outputfile
|
vim $outputfile
|
||||||
exit $?
|
exit $?
|
||||||
elif [ $2 = "sync" ]; then
|
|
||||||
cd $repopath
|
|
||||||
git add *
|
|
||||||
git commit -am "changes by $HOSTNAME. syncing git repo."
|
|
||||||
git push
|
|
||||||
exit $?
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue