Skip to content

Commit

Permalink
Add scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Jan 21, 2020
1 parent 4fb0297 commit d0727f4
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 0 deletions.
9 changes: 9 additions & 0 deletions misc/push-pull/pull
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

if [ "x$1" = "x-usage" ]; then
echo push memo from server
exit
fi

cd $MEMODIR && git pull origin master

7 changes: 7 additions & 0 deletions misc/push-pull/pull.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@echo off
if "x%1" neq "x-usage" goto run
echo pull memo from server
goto :eof
:run
setlocal
cd %MEMODIR% && git pull origin master
8 changes: 8 additions & 0 deletions misc/push-pull/push
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

if [ "x$1" = "x-usage" ]; then
echo push memo to server
exit
fi

cd $MEMODIR && git add -A --ignore-errors && git commit -m update && git push origin master
7 changes: 7 additions & 0 deletions misc/push-pull/push.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@echo off
if "x%1" neq "x-usage" goto run
echo push memo to server
goto :eof
:run
setlocal
cd %MEMODIR% && git add -A --ignore-errors && git commit -m update && git push origin master
File renamed without changes.

0 comments on commit d0727f4

Please sign in to comment.