Skip to content

Commit

Permalink
exit scripts if error
Browse files Browse the repository at this point in the history
  • Loading branch information
baileyallison committed Feb 14, 2025
1 parent 7d02333 commit da30765
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rocky8-domainjoina.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#/bin/bash
#rocky 8 domain join

set -e

# Function to display usage
usage() {
Expand Down
2 changes: 2 additions & 0 deletions ubuntis20-domainjoiner.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#/bin/bash
##ubuntis 20 domain joiner extraordainer

set -e

# Function to display usage
usage() {
echo "Usage: $0 --hostname HOSTNAME --user USERNAME --realm REALM"
Expand Down

0 comments on commit da30765

Please sign in to comment.