Skip to content

Commit 895582e

Browse files
author
Antoine Toussaint
committed
update: changes
1 parent cfe4a9e commit 895582e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

scripts/build/local.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

33
FILE=agent.codefly.yaml
4-
AGENT=$( yq e '.name' $FILE)
5-
VERSION=$(yq e '.version' $FILE)
4+
AGENT=$( yq -r '.name' $FILE)
5+
VERSION=$(yq -r '.version' $FILE)
66

77
go mod tidy
88
echo Building ${AGENT}:${VERSION}

scripts/publish/push.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if [ ! -f "$YAML_FILE" ]; then
3232
exit 1
3333
fi
3434

35-
CURRENT_VERSION=$(yq eval '.version' "$YAML_FILE")
35+
CURRENT_VERSION=$(yq -rval '.version' "$YAML_FILE")
3636

3737
git push -f
3838
git push origin "v$CURRENT_VERSION" -f

scripts/publish/re_tag.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if [ ! -f "$YAML_FILE" ]; then
77
exit 1
88
fi
99

10-
CURRENT_VERSION=$(yq eval '.version' "$YAML_FILE")
10+
CURRENT_VERSION=$(yq -rval '.version' "$YAML_FILE")
1111
NEW_VERSION="$CURRENT_VERSION"
1212

1313
# Update the version in the YAML file (for macOS)

scripts/publish/tag.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fi
1313
# Argument is patch/minor/major and defaults to patch
1414
NEW_VERSION_TYPE=${1:-patch}
1515

16-
CURRENT_VERSION=$(yq eval '.version' "$YAML_FILE")
16+
CURRENT_VERSION=$(yq -rval '.version' "$YAML_FILE")
1717
NEW_VERSION=$(semver bump "$NEW_VERSION_TYPE" "$CURRENT_VERSION")
1818

1919
# Update the version in the YAML file (for macOS)

0 commit comments

Comments
 (0)