Skip to content

Commit 0bf37b5

Browse files
committed
check-lts: use arg 1 as major version
1 parent 5b33603 commit 0bf37b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build-constraints/check-lts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ set -euxo pipefail
66

77
cd `dirname $0`
88

9-
MAJOR=23
10-
LTS=$(curl -s https://www.stackage.org/download/snapshots.json | jq -r '.["lts"]')
9+
MAJOR=${1:-23}
10+
LTS=$(curl -s https://www.stackage.org/download/snapshots.json | jq -r '.["lts-'$MAJOR'"]')
1111

1212
echo "$LTS"
1313

0 commit comments

Comments
 (0)