Skip to content
Permalink
Browse files

removing mistake

  • Loading branch information
skublik committed Oct 1, 2018
1 parent 9b1a4d7 commit e893b3e7c4535e563168d285b1de6971f5e53c6e
Showing with 3 additions and 4 deletions.
  1. +3 −4 library.bash
@@ -138,11 +138,10 @@ function add_object () {
http_code=$(sed '$!d' <<<"$response")

if [ "$http_code" -eq 201 ] || [ "$http_code" -eq 202 ]; then
headers=$(sed -n '1,/^\r$/p' <<<"$response")


# get the real Location
location=$(grep -oP 'Location: \K.*' <<<"$headers")
oid=$(sed 's/.*\///' <<<"$location")
location=$(grep -oP "Location: \K.*" <<<"$response")
oid=$(sed 's/.*\///' <<<"$location")

echo "Oid created object: $oid"
return 0

0 comments on commit e893b3e

Please sign in to comment.
You can’t perform that action at this time.