Skip to content

Commit

Permalink
Fix reference to temp file
Browse files Browse the repository at this point in the history
  • Loading branch information
schemar committed Apr 13, 2021
1 parent f1f2284 commit ac53f87
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac53f87

Please sign in to comment.