From d969119f60bb74ec39b2efe2158336de1f98b397 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 18 Sep 2023 15:39:05 +0200 Subject: [PATCH] Fixed sed expression --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 267046e83f..5a39e52632 100644 --- a/.drone.yml +++ b/.drone.yml @@ -275,7 +275,7 @@ steps: - echo "--- Parsing metadata" - git config --global --add safe.directory $PWD - git pull --rebase origin master --tags - - export PY_VERSION=$(python3 --version | awk '{print $2}' | sed -re 's/^([0-9]+\.[0-9]+).*/\1/') + - export PY_VERSION="$(python3 --version | awk '{print $2}' | sed -r -e 's/^([0-9]+\.[0-9]+).*/\1/')" - export VERSION=$(python3 setup.py --version) - export HEAD=$(git log --pretty=format:%h HEAD...HEAD~1) - export TAG_URL="https://git.platypush.tech/platypush/platypush/archive/v$VERSION.tar.gz" @@ -334,7 +334,7 @@ steps: - echo "--- Parsing metadata" - git config --global --add safe.directory $PWD - git pull --rebase origin master --tags - - export PY_VERSION=$(python3 --version | awk '{print $2}' | sed -re 's/^([0-9]+\.[0-9]+).*/\1/') + - export PY_VERSION="$(python3 --version | awk '{print $2}' | sed -r -e 's/^([0-9]+\.[0-9]+).*/\1/')" - export VERSION=$(python3 setup.py --version) - export HEAD=$(git log --pretty=format:%h HEAD...HEAD~1) - export TAG_URL="https://git.platypush.tech/platypush/platypush/archive/v$VERSION.tar.gz"