home/.local/script/gitsave

14 lines
148 B
Plaintext
Raw Normal View History

2024-04-03 04:34:54 +00:00
#!/bin/bash
2024-03-26 21:15:01 +00:00
git add -A
2024-04-03 04:34:54 +00:00
if [ "$#" -eq 0 ]; then
2024-05-04 21:42:44 +00:00
git commit -m "noot"
2024-03-26 21:15:01 +00:00
else
2024-04-03 04:34:54 +00:00
array=("$@")
2024-04-12 19:03:58 +00:00
str="${array[@]}"
2024-04-03 04:34:54 +00:00
git commit -m "$str"
2024-03-26 21:15:01 +00:00
fi
git push