Fix bugs in PR-aware "Edit in GitHub" code

works around BashFAQ #050 etc.
This commit is contained in:
mDuo13
2018-03-07 15:47:59 -08:00
parent 3dae8a13a3
commit d351f409c6
4 changed files with 10 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ gitForkWithoutSuffix=${ghprbAuthorRepoGitUrl%.git}
if [ -n "$ghprbPullId" ];
then
dactyl_vars='--vars '"'"'{"github_forkurl": "'"$gitForkWithoutSuffix"'", "github_branch": "'"$ghprbSourceBranch"'", "github_pr_id": "'"$ghprbPullId"'"}'"'"
dactyl_vars="'"'{"github_forkurl": "'"$gitForkWithoutSuffix"'", "github_branch": "'"$ghprbSourceBranch"'", "github_pr_id": "'"$ghprbPullId"'", "is_pr_build": true}'"'"
else
dactyl_vars=""
fi