Accept any number of arguments instead of needing to use strings
This commit is contained in:
parent
b669606c4d
commit
86a7542e71
|
@ -86,10 +86,10 @@ function register_key() {
|
|||
|
||||
function push() {
|
||||
git add -A
|
||||
if [ -z "$1" ]; then
|
||||
if [ -z "$@" ]; then
|
||||
git commit -m "`date`"
|
||||
else
|
||||
git commit -m "$1"
|
||||
git commit -m "\"$@\""
|
||||
fi
|
||||
git push
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue