add pipefail

This commit is contained in:
vincent 2022-10-23 15:44:19 +02:00
parent e592b3833b
commit cbc98ed509

View File

@ -58,6 +58,7 @@
- name: GITHUB | Get current version of bat - name: GITHUB | Get current version of bat
shell: > shell: >
warn=False warn=False
set -o pipefail
curl -L --silent https://api.github.com/repos/sharkdp/bat/releases/latest | curl -L --silent https://api.github.com/repos/sharkdp/bat/releases/latest |
grep '"tag_name":' | grep '"tag_name":' |
sed -E 's/.*"([^"]+)".*/\1/'|sed 's/v//' sed -E 's/.*"([^"]+)".*/\1/'|sed 's/v//'