16 lines
240 B
Bash
Executable File
16 lines
240 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
cd /opt/appfactory/workspace/appfactory-tools
|
|
|
|
git add -A
|
|
|
|
if ! git diff --cached --quiet; then
|
|
git commit -m "Auto-save local changes before pull"
|
|
fi
|
|
|
|
git pull --rebase origin main
|
|
|
|
echo "DONE"
|
|
EOF
|