Skip to content

Commit

Permalink
Fix shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
alexaka1 committed Jul 7, 2024
1 parent 07b1daf commit 67106b6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build/version.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash
#!/usr/bin/env bash

PACKAGE_JSON_PATH=$1
CSPROJ_PATH=$2
PACKAGE_NAME=$2
PACKAGE_JSON_PATH="$1"
CSPROJ_PATH="$2"
PACKAGE_NAME="$3"

set -e
set -xe
yarn run version
VERSION=$(jq -r '.version' "$PACKAGE_JSON_PATH")
sed -i "s#<VersionPrefix>.*</VersionPrefix>#<VersionPrefix>$VERSION</VersionPrefix>#" "$CSPROJ_PATH"
Expand Down

0 comments on commit 67106b6

Please sign in to comment.