Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
xXkoshmarikXx committed Aug 26, 2024
1 parent 3400d08 commit e2fd754
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion goldenimage.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ locals {
"curl --connect-timeout 2.37 -m 20 -o /tmp/parameters_find.sh https://raw.githubusercontent.com/xXkoshmarikXx/test-commit/master/parameters_find.sh && bash /tmp/parameters_find.sh --tags installation",
] : [],
scripts = fileexists("goldenimage-test.sh") ? [
"parameters_find.sh"
"goldenimage-test.sh"
] : []
}

Expand Down
12 changes: 1 addition & 11 deletions parameters_accepts.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env bash
set -euo pipefail
# Constants
LOCAL_IDENTIFY_OS_SCRIPT="identify_os.sh"
REMOTE_IDENTIFY_OS_SCRIPT="https://raw.githubusercontent.com/inqwise/ansible-automation-toolkit/default/identify_os.sh"
Expand Down Expand Up @@ -160,14 +159,5 @@ main() {

echo "End goldenimage.sh"
}

# Trap errors and execute the catch_error function
trap 'catch_error "$ERROR"' ERR

# Execute the main function and capture errors
ERROR=$(main 2>&1)

# If you want to ensure that the script exits after an error, you can use:
if [ $? -ne 0 ]; then
exit 1
fi
{ ERROR=$(main 2>&1 1>&$out); } {out}>&1

0 comments on commit e2fd754

Please sign in to comment.