From e8888e76ec04cdaced86760639cdb678b0b8b20a Mon Sep 17 00:00:00 2001 From: Igor Nepipenko Date: Mon, 18 Mar 2024 18:36:39 +0100 Subject: [PATCH] fix(no-ref): add version for build v4 (#1324) Co-authored-by: Igor Nepipenko --- .github/workflows/scripts/replace_template.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/scripts/replace_template.sh b/.github/workflows/scripts/replace_template.sh index fd8db185..733cc35a 100755 --- a/.github/workflows/scripts/replace_template.sh +++ b/.github/workflows/scripts/replace_template.sh @@ -6,12 +6,10 @@ if [ $# -ne 1 ]; then exit 1 fi -current_directory=$(pwd) -echo "Current directory: $current_directory" -ls $current_directory # Assign arguments to variables custom_string="$1" # Perform the replacement and save to output file -sed -i "" "s/<%version%>/$custom_string/g" "angular.json" +sed "s/<%version%>/$custom_string/g" "angular.json" > "angular.json.tmp" && mv "angular.json.tmp" "angular.json" + echo "Template string replaced successfully. 🎉"