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