You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "🪢 Retrieving the latest lively.next version."
git pull origin main --ff-only
echo "📦 Installing latest version of lively.next."
./install.sh
if [ "$stashOutputWithoutWhiteSpace" != "No local changes to save" ]; then
echo "💾 Restoring local changes."
git stash pop
fi
echo "🔁 Restart lively.next server."
# We trap SIGTERM in start.sh. Since the start.sh script is sleeping once the server is launched, we need to send SIGTERM not only to that process, but to the whole process group.
# The PGID is not readily available, therefore:
# 1. List all running commands and their PGID.
# 2. Clean up the output (spaces instead of tabs).
# 3. `grep` for `start.sh` and discard unecessary lines.
# 4. Extract the PGID from the remaining information. Since macOS output and linux output differ in whitespace, 🫓 that shit with xargs.