Something fixed

This commit is contained in:
2026-05-18 16:37:54 +05:30
parent 2692a446ed
commit a61cc65725
+1
View File
@@ -88,6 +88,7 @@ gtp() {
curl -sL "https://raw.githubusercontent.com/ngerakines/commitment/master/commit_messages.txt" --etag-compare "$cache_file.etag" --etag-save "$cache_file.etag" -o "$cache_file" curl -sL "https://raw.githubusercontent.com/ngerakines/commitment/master/commit_messages.txt" --etag-compare "$cache_file.etag" --etag-save "$cache_file.etag" -o "$cache_file"
[ -z "$*" ] && commit=$(shuf -n1 "$cache_file") || commit=$* [ -z "$*" ] && commit=$(shuf -n1 "$cache_file") || commit=$*
git add -p git add -p
printf "\nCommit Message: $commit\n"
git commit -m "$commit" git commit -m "$commit"
git push git push
unset commit unset commit