dev #1
@@ -19,9 +19,7 @@ while true; do
|
||||
|
||||
echo "[INFO] Triggered at $(date)"
|
||||
|
||||
# Prompt the user for a commit message
|
||||
read -rp "Enter commit message: " COMMIT_MSG
|
||||
# Fallback if the user presses enter without typing a message
|
||||
read -rp "Enter commit message: " COMMIT_MSG </dev/tty
|
||||
if [[ -z "$COMMIT_MSG" ]]; then
|
||||
COMMIT_MSG="Committed"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user