auto
This commit is contained in:
parent
a9e1ade4b6
commit
5f3bf3cc48
1 changed files with 14 additions and 0 deletions
14
update.sh
Normal file
14
update.sh
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
cd "$(dirname "$(realpath "$0")")"
|
||||||
|
|
||||||
|
if [ $# -lt 1 ]
|
||||||
|
then echo "Usage: update.sh <dir> [msg]" && exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
dir="$1"
|
||||||
|
msg="$2"
|
||||||
|
|
||||||
|
git add "$dir"
|
||||||
|
git commit -m "$dir $msg"
|
||||||
|
git push
|
Loading…
Add table
Add a link
Reference in a new issue