Created
March 13, 2015 04:07
-
-
Save jdforsythe/bf2c25a92e4b57163593 to your computer and use it in GitHub Desktop.
bumpversion.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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