Skip to content

Instantly share code, notes, and snippets.

@jdforsythe
Created March 13, 2015 04:07
Show Gist options
  • 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