format
authorShane Jaroch <chown_tee@proton.me>
Wed, 14 Jan 2026 18:20:47 +0000 (13:20 -0500)
committerShane Jaroch <chown_tee@proton.me>
Wed, 14 Jan 2026 18:20:47 +0000 (13:20 -0500)
tests/test-install-logic.sh

index 76a9bf67dbb83a34c00e37d2f5f3f77997f6f2c9..d926a68a50102a86f88595b3936d92859fa47a33 100755 (executable)
@@ -24,8 +24,8 @@ cd "$SANDBOX" || exit 2
 # Ensure source binary has the placeholder for sed to work on
 # If the local file already has a real version, inject the placeholder
 if ! grep -q "@@DEV_VERSION@@" git-remote-gcrypt; then
-       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
+       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