Skip to content

Commit 90dd06e

Browse files
committed
Removing quotes from jq response
1 parent 7c30ad4 commit 90dd06e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/latest-nightly-version.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ $PATH_PACKAGES_API = "orgs/seleniumhq/packages/$PACKAGE_TYPE/$PACKAGE_NAME/versi
55
$ACCEPT_HEADER = "Accept: application/vnd.github+json"
66
$VERSION_HEADER = "X-GitHub-Api-Version: 2022-11-28"
77

8-
$ghApiCommand = "gh api -H `"$ACCEPT_HEADER`" -H `"$VERSION_HEADER`" $PATH_PACKAGES_API | jq '.[0].name'"
8+
$ghApiCommand = "gh api -H `"$ACCEPT_HEADER`" -H `"$VERSION_HEADER`" $PATH_PACKAGES_API | jq -r '.[0].name'"
99
Invoke-Expression -Command $ghApiCommand

scripts/latest-nightly-version.sh

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

3-
set -xe
3+
set -e
44

55
PACKAGE_TYPE="$1"
66
PACKAGE_NAME="$2"
@@ -9,4 +9,4 @@ PATH_PACKAGES_API="orgs/seleniumhq/packages/$PACKAGE_TYPE/$PACKAGE_NAME/versions
99
ACCEPT_HEADER="Accept: application/vnd.github+json"
1010
VERSION_HEADER="X-GitHub-Api-Version: 2022-11-28"
1111

12-
gh api -H "$ACCEPT_HEADER" -H "$VERSION_HEADER" $PATH_PACKAGES_API | jq '.[0].name'
12+
gh api -H "$ACCEPT_HEADER" -H "$VERSION_HEADER" $PATH_PACKAGES_API | jq -r '.[0].name'

0 commit comments

Comments
 (0)