diff --git a/pu b/pu index e41e456..69c37e7 100755 --- a/pu +++ b/pu @@ -6,12 +6,13 @@ 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" + push "$(date)" else push "$1" fi