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. 🎉"