mirror of
https://git.ari.lt/ari.lt/ari.lt.git
synced 2025-02-04 17:49:24 +01:00
24 lines
398 B
Bash
Executable file
24 lines
398 B
Bash
Executable file
#!/bin/sh
|
|
|
|
url="https://github.com/TruncatedDinosour/website.git"
|
|
msg="update @ $(date)"
|
|
if [[ "$1" ]];
|
|
then
|
|
msg="$1"
|
|
fi
|
|
|
|
echo "committing with message \"$msg\""
|
|
if [[ ! -d ".git" ]];
|
|
then
|
|
git init
|
|
git add .
|
|
git commit -m "$msg"
|
|
git remote add origin "$url"
|
|
git push -u origin master
|
|
exit $?
|
|
else
|
|
git add .
|
|
git commit -m "$msg"
|
|
git push -u origin master
|
|
fi
|
|
|