From ac53f876f603742d81e91ce6bc035630736d806e Mon Sep 17 00:00:00 2001 From: Martin Schenck Date: Tue, 13 Apr 2021 20:24:58 +0200 Subject: [PATCH] Fix reference to temp file --- release.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/release.sh b/release.sh index 1c88c1ab86..782d356254 100755 --- a/release.sh +++ b/release.sh @@ -32,18 +32,18 @@ if [[ $REPLY =~ ^[Yy]$ ]] then echo "Updating package.json" TEMP_FILE=$(mktemp) - jq ".version |= \"${NEW_VERSION}\"" package.json > TEMP_FILE || exit 1 - mv TEMP_FILE package.json + jq ".version |= \"${NEW_VERSION}\"" package.json > $TEMP_FILE || exit 1 + mv $TEMP_FILE package.json echo "Updating manifest.json" TEMP_FILE=$(mktemp) - jq ".version |= \"${NEW_VERSION}\" | .minAppVersion |= \"${MINIMUM_OBSIDIAN_VERSION}\"" manifest.json > TEMP_FILE || exit 1 - mv TEMP_FILE manifest.json + jq ".version |= \"${NEW_VERSION}\" | .minAppVersion |= \"${MINIMUM_OBSIDIAN_VERSION}\"" manifest.json > $TEMP_FILE || exit 1 + mv $TEMP_FILE manifest.json echo "Updating versions.json" TEMP_FILE=$(mktemp) - jq ". += {\"${NEW_VERSION}\": \"${MINIMUM_OBSIDIAN_VERSION}\"}" versions.json > TEMP_FILE || exit 1 - mv TEMP_FILE versions.json + jq ". += {\"${NEW_VERSION}\": \"${MINIMUM_OBSIDIAN_VERSION}\"}" versions.json > $TEMP_FILE || exit 1 + mv $TEMP_FILE versions.json read -p "Create git commit, tag, and push? [y/N] " -n 1 -r echo