From e0b529c8a6d438df7b4f12adfbd736fdb3cf383f Mon Sep 17 00:00:00 2001
From: lcappelli <laura.cappelli@cnaf.infn.it>
Date: Fri, 24 Jun 2022 09:05:36 +0000
Subject: [PATCH] Add set -ex and review if statement

---
 .devcontainer/assets/build-install-openresty-voms.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.devcontainer/assets/build-install-openresty-voms.sh b/.devcontainer/assets/build-install-openresty-voms.sh
index a1d25c6..7a516d3 100644
--- a/.devcontainer/assets/build-install-openresty-voms.sh
+++ b/.devcontainer/assets/build-install-openresty-voms.sh
@@ -18,6 +18,8 @@
 # The script works best (i.e. it is tested) if run within a docker container
 # started from the .devcontainer
 
+set -ex
+
 usage()
 {
     echo "USAGE: $0 [OPTIONS] [TEXT]"
@@ -102,7 +104,7 @@ if [ ! -d "${module_root}" ]; then
     exit 1
 fi
 
-if [ ! -f "/workspaces/ngx_http_voms_module/nginx-httpg_no_delegation.patch" ]; then
+if [ ! -f "${module_root}/nginx-httpg_no_delegation.patch" ]; then
     >&2 echo "nginx-httpg_no_delegation.patch not found in ${module_root} dir."
     exit 1
 fi
-- 
GitLab