oscam-2.26.01-11942-802-wit.../gitupdate.sh

26 lines
385 B
Bash

#!/bin/bash
echo "===== GIT STATUS ====="
git status
echo ""
read -p "Podaj opis commita: " msg
if [ -z "$msg" ]; then
echo "❌ Commit message nie może być puste."
exit 1
fi
git add -A
git commit -m "$msg"
if [ $? -ne 0 ]; then
echo "❌ Brak zmian do commitowania."
exit 1
fi
git push origin main
echo "✅ Commit zapisany i wypchnięty bez nadpisywania historii."