From bf9f8cd28366c18f77301dbb63a4f13e10476556 Mon Sep 17 00:00:00 2001 From: Marius van den Beek Date: Mon, 1 Jun 2015 16:19:14 +0200 Subject: [PATCH] Exclude curly braces from API-key to fix toolshed bootstrapping. --- .../scripts/bootstrap_tool_shed/bootstrap_tool_shed.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tool_shed/scripts/bootstrap_tool_shed/bootstrap_tool_shed.sh b/lib/tool_shed/scripts/bootstrap_tool_shed/bootstrap_tool_shed.sh index 1efd69036fb..de8f469b58f 100755 --- a/lib/tool_shed/scripts/bootstrap_tool_shed/bootstrap_tool_shed.sh +++ b/lib/tool_shed/scripts/bootstrap_tool_shed/bootstrap_tool_shed.sh @@ -76,7 +76,7 @@ while : ; do done echo -n "Retrieving admin user's API key from $local_shed_url..." -api_key=`curl -s --user $admin_user_email:$admin_user_password $local_shed_url/api/authenticate/baseauth/ | sed 's/..*api_key[^0-9a-f][^0-9a-f]*\([0-9a-f]*\)..*/\1/'` +api_key=`curl -s --user $admin_user_email:$admin_user_password $local_shed_url/api/authenticate/baseauth/ | sed 's/..*api_key[^0-9a-f][^0-9a-f]*\([0-9a-f]*\)..*/\1/'| sed 's/[{}]//g'` if [[ -z $api_key && ${api_key+x} ]] ; then stop_err "Error getting API key for user $admin_user_email."