Skip to content

Commit

Permalink
fixing print in shell script and updating string interpolation in pyt…
Browse files Browse the repository at this point in the history
…hon script
  • Loading branch information
drewtaylors authored and t-nelson committed Sep 22, 2021
1 parent cf43587 commit 1fa8b6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ci/dependabot-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ echo --- "(FAILING) Backpropagating dependabot-triggered Cargo.lock updates"
name="dependabot-buildkite"
api_base="https://api.github.com/repos/solana-labs/solana/pulls"
pr_num=$(echo "$BUILDKITE_BRANCH" | grep -Eo '[0-9]+')
branch=$(curl -s "$api_base/$pr_num" | python3 -c 'import json,sys;print json.load(sys.stdin)["head"]["ref"]')
branch=$(curl -s "$api_base/$pr_num" | python3 -c 'import json,sys;print(json.load(sys.stdin)["head"]["ref"])')

git add :**/Cargo.lock
EMAIL="[email protected]" \
Expand Down
2 changes: 1 addition & 1 deletion scripts/perf-plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
stages_to_time = {}

if len(sys.argv) != 2:
print("USAGE: {} <input file>".format(sys.argv[0]))
print(f"USAGE: {sys.argv[0]} <input file>")
sys.exit(1)

with open(sys.argv[1]) as fh:
Expand Down

0 comments on commit 1fa8b6b

Please sign in to comment.