datta/scripts/get_slack_version.sh

7 lines
213 B

1 year ago
#!/bin/bash
curl -s https://slack.com/release-notes/linux \
| grep -E '<h2 class="u-flex u-align--center">Slack ' \
| sed -e 's/.*<h2 class="u-flex u-align--center">Slack //g' -e 's#</h2>.*##g' \
| head -1