From 2882e2426a5432649788576308add8c5b152c08f Mon Sep 17 00:00:00 2001
From: Thomas Woerner <twoerner@redhat.com>
Date: Thu, 4 May 2023 17:00:17 +0200
Subject: [PATCH] Add -eu to all bash shebangs

ansible requires to either use "#!/bin/bash -eu" or "#!/bin/bash -eux"
for bash shebangs.
---
 tests/external-signed-ca-with-automatic-copy/external-ca.sh | 2 +-
 tests/group/groups.sh                                       | 2 +-
 tests/sanity/sanity.sh                                      | 2 +-
 tests/user/users.sh                                         | 2 +-
 tests/user/users_absent.sh                                  | 2 +-
 utils/build-galaxy-release.sh                               | 2 +-
 utils/build-srpm.sh                                         | 2 +-
 utils/gen_modules_docs.sh                                   | 2 +-
 utils/lint_check.sh                                         | 2 +-
 utils/new_module                                            | 2 +-
 10 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/tests/external-signed-ca-with-automatic-copy/external-ca.sh b/tests/external-signed-ca-with-automatic-copy/external-ca.sh
index de5fcecc..5e66c50d 100644
--- a/tests/external-signed-ca-with-automatic-copy/external-ca.sh
+++ b/tests/external-signed-ca-with-automatic-copy/external-ca.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -eu
 
 master=$1
 if [ -z "$master" ]; then
diff --git a/tests/group/groups.sh b/tests/group/groups.sh
index 63e36c01..f7694b2e 100644
--- a/tests/group/groups.sh
+++ b/tests/group/groups.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -eu
 
 NUM=${1-1000}
 FILE="groups.json"
diff --git a/tests/sanity/sanity.sh b/tests/sanity/sanity.sh
index 23058139..ba56ade4 100644
--- a/tests/sanity/sanity.sh
+++ b/tests/sanity/sanity.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -eu
 
 TOPDIR=$(readlink -f "$(dirname "$0")/../..")
 pushd "${TOPDIR}" >/dev/null || exit 1
diff --git a/tests/user/users.sh b/tests/user/users.sh
index da408d75..8b1f5d29 100644
--- a/tests/user/users.sh
+++ b/tests/user/users.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -eu
 
 NUM=${1-1000}
 FILE="users.json"
diff --git a/tests/user/users_absent.sh b/tests/user/users_absent.sh
index f0179931..812c5d6f 100644
--- a/tests/user/users_absent.sh
+++ b/tests/user/users_absent.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -eu
 
 NUM=1000
 FILE="users_absent.json"
diff --git a/utils/build-galaxy-release.sh b/utils/build-galaxy-release.sh
index e3eb0b9c..e427013e 100755
--- a/utils/build-galaxy-release.sh
+++ b/utils/build-galaxy-release.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -eu
 #
 # Build Ansible Collection from ansible-freeipa repo
 #
diff --git a/utils/build-srpm.sh b/utils/build-srpm.sh
index cb9c1361..da3caac8 100755
--- a/utils/build-srpm.sh
+++ b/utils/build-srpm.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -eu
 
 git_version=$(git describe --tags | sed -e "s/^v//")
 version=${git_version%%-*}
diff --git a/utils/gen_modules_docs.sh b/utils/gen_modules_docs.sh
index 302e82ab..6ef53be7 100644
--- a/utils/gen_modules_docs.sh
+++ b/utils/gen_modules_docs.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -eu
 
 for i in roles/ipa*/*/*.py; do
     python utils/gen_module_docs.py "$i"
diff --git a/utils/lint_check.sh b/utils/lint_check.sh
index a32b6499..61c3b0b9 100755
--- a/utils/lint_check.sh
+++ b/utils/lint_check.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -eu
 
 INFO="\033[37;1m"
 WARN="\033[33;1m"
diff --git a/utils/new_module b/utils/new_module
index 58e47d06..86a9f94a 100755
--- a/utils/new_module
+++ b/utils/new_module
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -eu
 # -*- coding: utf-8 -*-
 
 # Authors:
-- 
GitLab