Fix all-target-link-checker var clash

This commit is contained in:
mDuo13
2018-03-07 16:07:06 -08:00
parent d351f409c6
commit c466e85614
2 changed files with 6 additions and 4 deletions

View File

@@ -2,9 +2,10 @@
mkdir -p out
# Pass forward dactyl "vars" arg if provided
if [ -n "$1" ];
if [ "$1" == "--vars" ] && [ -n "$2" ];
then
dactyl_vars=$1
dactyl_vars=$2
shift 2
fi
targets=`dactyl_build -lq | awk '{print $1}'`

View File

@@ -11,7 +11,8 @@ gitForkWithoutSuffix=${ghprbAuthorRepoGitUrl%.git}
if [ -n "$ghprbPullId" ];
then
dactyl_vars="'"'{"github_forkurl": "'"$gitForkWithoutSuffix"'", "github_branch": "'"$ghprbSourceBranch"'", "github_pr_id": "'"$ghprbPullId"'", "is_pr_build": true}'"'"
echo '{"github_forkurl": "'"$gitForkWithoutSuffix"'", "github_branch": "'"$ghprbSourceBranch"'", "github_pr_id": "'"$ghprbPullId"'", "is_pr_build": true}' > pr_vars.json
dactyl_vars="pr_vars.json"
else
dactyl_vars=""
fi
@@ -19,4 +20,4 @@ fi
set -e
tool/conflictmarkers.sh
tool/all-target-link-checker.sh "$dactyl_vars"
tool/all-target-link-checker.sh --vars "$dactyl_vars"