|
#!/bin/bash
|
|
# pu: for pushing files to git.disroot.org.
|
|
|
|
push()
|
|
{
|
|
git add . && git commit -m "$1" && git push -u origin master
|
|
}
|
|
|
|
|
|
if [[ $# == 0 ]]; then
|
|
read -p "commit message: " msg
|
|
push "$msg"
|
|
else
|
|
if [[ $1 == -time ]]; then
|
|
push "$(date)"
|
|
else
|
|
push "$1"
|
|
fi
|
|
fi
|