Skip to content

Instantly share code, notes, and snippets.

@jdforsythe
Created March 13, 2015 04:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdforsythe/bf2c25a92e4b57163593 to your computer and use it in GitHub Desktop.
Save jdforsythe/bf2c25a92e4b57163593 to your computer and use it in GitHub Desktop.
bumpversion.sh
#!/bin/bash
oldnum=`cut -d '"' -f2 version.php`
echo "Current version is $oldnum"
echo "Enter new version:"
read version
echo "<?php echo \"$version\";" > version.php
echo "Version set to $version"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment