We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a30a0ef commit eb3e0c0Copy full SHA for eb3e0c0
1 file changed
update.sh
@@ -6,6 +6,7 @@ set -euo pipefail
6
7
# Redirect all output to the log file (and console via tee)
8
LOG_FILE="/tmp/chatserver-update.log"
9
+rm -f "$LOG_FILE"
10
exec > >(tee "$LOG_FILE") 2>&1
11
12
# Configuration
@@ -26,6 +27,7 @@ fail() { printf '\033[1;31m✗ %s\033[0m\n' "$*" >&2; exit 1; }
26
27
log "Fetching latest code"
28
cd "$INSTALL_DIR"
29
git config --global --add safe.directory "$INSTALL_DIR"
30
+git config --global --add safe.directory '*'
31
git fetch origin
32
git merge --ff-only origin/main
33
ok "Repository updated"
0 commit comments