Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't send 'null' as auth

Fix #159
  • Loading branch information...
commit e4512dd976d968bf5f22bddd98cb906df7be53bb 1 parent f4e0ce4
@isaacs isaacs authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  copy.sh
View
2  copy.sh
@@ -39,7 +39,7 @@ rev=$(curl -k "$c"/_design/app | json _rev)
if [ "$rev" != "" ]; then
rev="?rev=$rev"
fi
-auth="$(node -pe 'require("url").parse(process.argv[1]).auth' "$c")"
+auth="$(node -pe 'require("url").parse(process.argv[1]).auth || ""' "$c")"
url="$(node -pe 'u=require("url");p=u.parse(process.argv[1]);delete p.auth;u.format(p)' "$c")"
curl "$url/_design/scratch" \
Please sign in to comment.
Something went wrong with that request. Please try again.