Add set -euo pipefail to bash scripts
All checks were successful
Push commit / report (push) Successful in 7s
All checks were successful
Push commit / report (push) Successful in 7s
This commit is contained in:
parent
54701da1d9
commit
88a1d8d79e
2
stdin2discord.bash
Normal file → Executable file
2
stdin2discord.bash
Normal file → Executable file
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
set -euo pipefail
|
||||
|
||||
send() {
|
||||
local _msg=$1
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user