prepare for cli updates with custom php binary
This commit is contained in:
@@ -98,5 +98,5 @@
|
|||||||
"minimum-stability": "stable",
|
"minimum-stability": "stable",
|
||||||
"prefer-stable": true,
|
"prefer-stable": true,
|
||||||
"version": "26.0.2",
|
"version": "26.0.2",
|
||||||
"build": "56"
|
"build": "58"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,10 +4,17 @@ set -euo pipefail
|
|||||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
cd "$ROOT_DIR"
|
cd "$ROOT_DIR"
|
||||||
|
|
||||||
if [[ -n "$(git status --porcelain)" ]]; then
|
git restore -q bootstrap/cache/packages.php bootstrap/cache/services.php 2>/dev/null || true
|
||||||
|
DIRTY="$(git status --porcelain)"
|
||||||
|
DIRTY_FILTERED="$(echo "$DIRTY" | grep -vE '^( M|M ) (bootstrap/cache/(packages|services)\.php|package-lock\.json)$' || true)"
|
||||||
|
if [[ -n "$DIRTY_FILTERED" ]]; then
|
||||||
echo "Working tree is dirty. Please commit or stash changes before updating."
|
echo "Working tree is dirty. Please commit or stash changes before updating."
|
||||||
|
echo "$DIRTY_FILTERED"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
if echo "$DIRTY" | grep -qE 'package-lock\.json'; then
|
||||||
|
echo "Warning: package-lock.json is modified. Continuing anyway."
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Fetching latest refs..."
|
echo "Fetching latest refs..."
|
||||||
git fetch --prune --tags
|
git fetch --prune --tags
|
||||||
|
|||||||
Reference in New Issue
Block a user