Skip to content

Commit

Permalink
Fix unreached If condition
Browse files Browse the repository at this point in the history
  • Loading branch information
TreeN0de committed Jan 11, 2022
1 parent 6c8c511 commit 7b12209
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/tests/acme_hooks/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,17 @@ acme_post_hook="$(docker exec "$le_container_name" grep "$acme_post_hook_key" "/

if [[ "$acme_pre_hook_key$acme_base64_start$pre_hook_command_base64$acme_base64_end" != "$acme_pre_hook" ]]; then
echo "Prehook command not saved properly"
elif [[ "$acme_post_hook_key$acme_base64_start$post_hook_command_base64$acme_base64_end" != "$acme_post_hook" ]]; then
fi
if [[ "$acme_post_hook_key$acme_base64_start$post_hook_command_base64$acme_base64_end" != "$acme_post_hook" ]]; then
echo "Posthook command not saved properly"
fi


## Check if the action ist performed
if docker exec "$le_container_name" [[ ! -f "$pre_hook_file" ]]; then
echo "Prehook action failed"
elif docker exec "$le_container_name" [[ ! -f "$post_hook_file" ]]; then
fi
if docker exec "$le_container_name" [[ ! -f "$post_hook_file" ]]; then
echo "Posthook action failed"
fi

0 comments on commit 7b12209

Please sign in to comment.