From cf4bd17d535bb87c4bf1de5e5b9086fac808df43 Mon Sep 17 00:00:00 2001 From: a31 Date: Sat, 9 Sep 2023 18:54:49 +0300 Subject: [PATCH] Update update_cec_list.bash --- update_cec_list.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update_cec_list.bash b/update_cec_list.bash index efef641..9cb2bc0 100755 --- a/update_cec_list.bash +++ b/update_cec_list.bash @@ -1,4 +1,5 @@ #!/usr/bin/bash +set -e 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 @@ -12,7 +13,7 @@ else git config user.email 'user2@localhost' git remote set-url origin https://x-access-token:$GITHUB_TOKEN@gitea.demb.uk/$GITHUB_REPOSITORY git diff "list.csv" - git diff "list.csv" | python3 stdin2discord.py + git diff "list.csv" | bash stdin2discord.bash git add "list.csv" git commit -m "commit" git push