Merge pull request #649 from adriaanzon/patch-1

git-fork: Let curl exit with error code on fail
This commit is contained in:
罗泽轩 2017-05-05 16:00:39 +08:00 committed by GitHub
commit 204406bd29

View file

@ -31,7 +31,7 @@ fi
[ -z "$project" -o -z "$owner" ] && abort "github repo needs to be specified as an argument"
# create fork
curl -qs \
curl -qsf \
-X POST \
-u "$user" \
-H "X-GitHub-OTP: $MFA_CODE" \