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
|
||||
|
||||
|
||||
#set repopath
|
||||
repopath="/home/david/docs"
|
||||
|
||||
#check if output file is given as first option
|
||||
if [ -z $1 ]; then
|
||||
|
@ -33,12 +31,6 @@ else
|
|||
elif [ $2 = "edit" ]; then
|
||||
vim $outputfile
|
||||
exit $?
|
||||
elif [ $2 = "sync" ]; then
|
||||
cd $repopath
|
||||
git add *
|
||||
git commit -am "changes by $HOSTNAME. syncing git repo."
|
||||
git push
|
||||
exit $?
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue