From 3a51fc56eadddb24f1b9d521261489c8199fe632 Mon Sep 17 00:00:00 2001 From: Edward McClanahan Date: Wed, 28 Feb 2024 17:05:00 -0800 Subject: [PATCH] wahoo --- iclient/iclient.sh | 2 +- imgr/mkmount.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iclient/iclient.sh b/iclient/iclient.sh index 773aaa83..5955d5e8 100755 --- a/iclient/iclient.sh +++ b/iclient/iclient.sh @@ -30,7 +30,7 @@ AuthToken="" while [ "$AuthToken" == "" ] do sleep 1 - AuthToken=`curl -v -s -H "X-Auth-User: test:tester" -H "X-Auth-Key: testing" swift:8080/auth/v1.0 2>&1 | awk /"X-Auth-Token:"/'{print $3}'` + AuthToken=`curl -v -s -H "X-Auth-User: test:tester" -H "X-Auth-Key: testing" swift:8080/auth/v1.0 2>&1 | awk /"X-Auth-Token:"/'{print $3}' | tr -d '\r'` done curl -v -s -H "X-Auth-Token: $AuthToken" swift:8080/v1/AUTH_test/con -X PUT diff --git a/imgr/mkmount.sh b/imgr/mkmount.sh index 321d6d39..0f009b8c 100755 --- a/imgr/mkmount.sh +++ b/imgr/mkmount.sh @@ -30,7 +30,7 @@ AuthToken="" while [ "$AuthToken" == "" ] do sleep 1 - AuthToken=`curl -v -s -H "X-Auth-User: test:tester" -H "X-Auth-Key: testing" swift:8080/auth/v1.0 2>&1 | awk /"X-Auth-Token:"/'{print $3}'` + AuthToken=`curl -v -s -H "X-Auth-User: test:tester" -H "X-Auth-Key: testing" swift:8080/auth/v1.0 2>&1 | awk /"X-Auth-Token:"/'{print $3}' | tr -d '\r'` done echo