From 36fde20b7d5cc880eab4f54e04eb47ef59ea2588 Mon Sep 17 00:00:00 2001 From: Joooye_34 Date: Thu, 4 Jan 2024 07:25:20 +0000 Subject: [PATCH] fix(electron): client always update cause by version not update correctly (#5507) close #5475 --- scripts/set-version.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/set-version.sh b/scripts/set-version.sh index 448b638143..a303e51c68 100755 --- a/scripts/set-version.sh +++ b/scripts/set-version.sh @@ -1,6 +1,7 @@ #!/bin/bash -for DIR in $(yarn workspaces list --json | jq -r '.location'); do +for DIR_ITEM in $(yarn workspaces list --json | jq -r '.location'); do + DIR=$(echo -n "$DIR_ITEM" | sed -e 's/[[:blank:]]*$//' -e 's/[\n\r]*$//') if [ -f "$DIR/package.json" ]; then echo "Setting version for $DIR" jq ".version = \"$1\"" "$DIR"/package.json > tmp.json && mv tmp.json "$DIR"/package.json