From: Shane Jaroch Date: Wed, 14 Jan 2026 17:06:30 +0000 (-0500) Subject: logic/test fix X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=061a52a66d0a04aa6453786e63dc6f2f37414c7b;p=gamesguru%2Fgit-remote-gcrypt.git logic/test fix --- diff --git a/tests/test-install-logic.sh b/tests/test-install-logic.sh index cc97fcc..76a9bf6 100755 --- a/tests/test-install-logic.sh +++ b/tests/test-install-logic.sh @@ -22,9 +22,10 @@ cp install.sh "$SANDBOX" cd "$SANDBOX" || exit 2 # Ensure source binary has the placeholder for sed to work on -# If your local git-remote-gcrypt already has a real version, sed won't find the tag +# If the local file already has a real version, inject the placeholder if ! grep -q "@@DEV_VERSION@@" git-remote-gcrypt; then - echo 'VERSION="@@DEV_VERSION@@"' >git-remote-gcrypt + sed -i.bak 's/^VERSION=.*/VERSION="@@DEV_VERSION@@"/' git-remote-gcrypt 2>/dev/null || \ + sed 's/^VERSION=.*/VERSION="@@DEV_VERSION@@"/' git-remote-gcrypt > git-remote-gcrypt.tmp && mv git-remote-gcrypt.tmp git-remote-gcrypt fi chmod +x git-remote-gcrypt