From 4f8ea7a7ec9b6d3719ed641c6bc947f18c16f5ad Mon Sep 17 00:00:00 2001 From: Ben Moore Date: Mon, 6 Apr 2020 11:06:07 -0500 Subject: [PATCH] ci: fix bug in bash scripting --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4ef8ac5..5df5b38 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -40,7 +40,7 @@ commands: - deploy: command: | cd /tmp/artifacts - VERSION=grep 'Version:' /tmp/src/plugin.php | awk -F: '{print $2}' | sed 's/^\s//' + VERSION=$(grep 'Version:' /tmp/src/plugin.php | awk -F: '{print $2}' | sed 's/^\s//') svn cp trunk tags/$VERSION svn_commit: description: "Commit changes to SVN" @@ -48,7 +48,7 @@ commands: - deploy: command: | cd /tmp/artifacts - VERSION=grep 'Version:' /tmp/src/plugin.php | awk -F: '{print $2}' | sed 's/^\s//' + VERSION=$(grep 'Version:' /tmp/src/plugin.php | awk -F: '{print $2}' | sed 's/^\s//') svn ci -m "Tagging $VERSION from Github" --no-auth-cache --non-interactive --username "$SVN_USERNAME" --password "$SVN_PASSWORD" executors: