Add set -euo pipefail to bash scripts
All checks were successful
Push commit / report (push) Successful in 7s

This commit is contained in:
norohind 2023-11-18 23:24:48 +03:00
parent 54701da1d9
commit 88a1d8d79e
Signed by: norohind
GPG Key ID: 01C3BECC26FB59E1
2 changed files with 2 additions and 1 deletions

2
stdin2discord.bash Normal file → Executable file
View File

@ -1,5 +1,5 @@
#!/bin/bash
set -e
set -euo pipefail
send() {
local _msg=$1

View File

@ -1,4 +1,5 @@
#!/usr/bin/bash
set -euo pipefail
http_response=$(curl -s -L -o list.csv -w "%{http_code}" "https://docs.google.com/spreadsheets/d/e/2PACX-1vTXE8HCavThmJt1Wshy3GyF2ZJ-264SbNRVucsPUe2rbEgpm-e3tqsX-8K2mwsG4ozBj6qUyOOd4RMe/pub?gid=1832580214&single=true&output=csv")
if [ $http_response != "200" ]; then