From 7df05fc74f61ccbc8912566330fb5cc55d23b81b Mon Sep 17 00:00:00 2001 From: Wilson Liu <wliu5@unimelb.edu.au> Date: Thu, 18 Jul 2019 17:06:16 +1000 Subject: [PATCH] Fixed project id parsing. --- .../scripts/unix/download-namespace-shell-script-url-create | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scripts/unix/download-namespace-shell-script-url-create b/src/main/scripts/unix/download-namespace-shell-script-url-create index 70250d1..7167e63 100644 --- a/src/main/scripts/unix/download-namespace-shell-script-url-create +++ b/src/main/scripts/unix/download-namespace-shell-script-url-create @@ -118,7 +118,7 @@ COMMAND="${COMMAND} :download <" for ns in "${NAMESPACES[@]}" do # resolve project id from namespace path - prj=$(echo "${ns}" | egrep -o "proj-.*-[0-9]+(.[0-9]+)*") + prj=$(echo "${ns}" | egrep -o "proj-.*-[0-9]+(.[0-9]+)*" | cut -d / -f1) if [[ -z ${prj} ]]; then echo "Error: cannot resolve project id from namespace path: %{ns}." 1>&2 exit 1 -- GitLab