14 lines
193 B
Bash
Executable file
14 lines
193 B
Bash
Executable file
#!/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
|