bump-version.sh 267 B

12345678910111213
  1. #!/bin/bash
  2. set -eu
  3. SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  4. cd "$SCRIPT_DIR/.."
  5. # shellcheck disable=SC2034
  6. OLD_VERSION="$1"
  7. NEW_VERSION="$2"
  8. sed -i -e 's/^version = .*$/version = '"$NEW_VERSION/" setup.cfg
  9. echo "New version: $NEW_VERSION"