notes-ing2/update.sh
2024-03-10 22:18:12 +01:00

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