Skip to content

Commit 6eb6771

Browse files
authored
Update install.sh
1 parent e5d3591 commit 6eb6771

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ for cmd in curl unzip awk; do
3333
done
3434

3535
get_latest_release_number() {
36-
curl --silent "https://github.com/sourceplusplus/interface-cli/releases/latest" | sed 's#.*tag/\(.*\)\".*#\1#'
36+
curl -Ls -o /dev/null -w %{url_effective} https://github.com/sourceplusplus/interface-cli/releases/latest | grep -Po "(?<=tag/)(.+)"
3737
}
3838

3939
# Convert the string to lower case.

0 commit comments

Comments
 (0)