Add euo to scripts

This commit is contained in:
Antonio J. Delgado 2023-11-02 17:26:19 +02:00
parent 8c47dffb01
commit 358d7ef176
5 changed files with 7 additions and 4 deletions

View file

@ -1,5 +1,5 @@
#!/bin/bash
set -euo pipefail
FILTER_PATH='/var/spool/filter'
while read -r FOLDER
do

View file

@ -1,4 +1,5 @@
#!/bin/bash
set -euo pipefail
# http://www.postfix.org/FILTER_README.html
# Clean up when done or when aborting.
finished=false

View file

@ -1,4 +1,5 @@
#!/bin/bash
set -euo pipefail
# shellcheck disable=SC1091
[ -r /var/lib/from_repos/ad_scripts/shared_functions.sh ] && . /var/lib/from_repos/ad_scripts/shared_functions.sh

View file

@ -1,4 +1,5 @@
#!/bin/bash
set -euo pipefail
if [[ "$1" == "" ]]
then
echo "Indicate a string to search in the postqueue."

View file

@ -1,5 +1,5 @@
#!/bin/bash
set -euo pipefail
declare clients=( hiljainen.susurrando.com )
rm /etc/postfix/allowed_clients