Skip to content

Commit 359723c

Browse files
Simplify for macOS
1 parent 3e97e34 commit 359723c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ runs:
4343
# Only resolve to latest version if explicitly set to 'latest' (case-insensitive)
4444
case "${REQUESTED_VERSION:-}" in
4545
[Ll][Aa][Tt][Ee][Ss][Tt])
46-
if [[ "$(echo "$PREVIEW" | tr '[:upper:]' '[:lower:]')" == "true" ]]; then
46+
if [[ "$PREVIEW" == "true" ]]; then
4747
echo "Fetching latest preview release..."
4848
REQUESTED_VERSION=$(
4949
curl -s -f \
@@ -132,7 +132,7 @@ runs:
132132
# Only resolve to latest version if explicitly set to 'latest' (case-insensitive)
133133
case "${REQUESTED_VERSION:-}" in
134134
[Ll][Aa][Tt][Ee][Ss][Tt])
135-
if [[ "$(echo "$PREVIEW" | tr '[:upper:]' '[:lower:]')" == "true" ]]; then
135+
if [[ "$PREVIEW" == "true" ]]; then
136136
echo "Fetching latest preview release..."
137137
REQUESTED_VERSION=$(
138138
curl -s -f \

0 commit comments

Comments
 (0)