Remove bad text.

This commit is contained in:
2026-01-04 19:57:28 -07:00
parent 1957f4fdab
commit 7f9494411b

View File

@@ -108,11 +108,14 @@ alias code-check="check-code"
# Quickly commit code to a repo. # Quickly commit code to a repo.
function commit { function commit {
message="$1" message="$1"
if [[ -z $message ]]; then if [[ -z "$message" ]]; then
echo "ERROR: A message is required." >&2 echo "ERROR: A message is required." >&2
echo 'USAGE: commit "My commit message."' >&2 echo 'USAGE: commit "My commit message."' >&2
return 1 return 1
fi fi
if [[ "$1" == "-m" ]]; then
message="$2"
fi
git add . && git commit -m "$message" && git push git add . && git commit -m "$message" && git push
} }
@@ -535,3 +538,4 @@ alias prod-pull="pull_prod_backups"
PROG="$(basename -- "${BASH_SOURCE[0]}")" PROG="$(basename -- "${BASH_SOURCE[0]}")"
echo "'$PROG' completed!" echo "'$PROG' completed!"
leted!" leted!"
d!"