Skip to content

Commit

Permalink
print dryrun commands in yellow for added visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Esgrove committed Sep 1, 2023
1 parent c9e4690 commit d1d6a8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ check_and_set_python() {
# if DRYRUN or DRY_RUN has been set, only print commands instead of running them
run_command() {
if [ "$DRY_RUN" = true ] || [ "$DRYRUN" = true ]; then
echo "DRYRUN: $*"
print_yellow "DRYRUN: $*"
else
echo "Running: $*"
"$@"
Expand Down
3 changes: 2 additions & 1 deletion python/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ git commit -m "$MESSAGE" n_vault/__init__.py setup.cfg
git tag "$NEW_VERSION" -m "$MESSAGE"
run_command git push origin "$NEW_VERSION"

print_magenta "Uploading package..."
print_magenta "Building package..."
check_and_set_python
rm -rf dist
$PYTHON setup.py sdist bdist_wheel
print_magenta "Uploading package..."
run_command twine upload dist/*

0 comments on commit d1d6a8b

Please sign in to comment.