#!/bin/bash

if [ -z "$1" ] 
  then
    echo "Version not supplied"
    exit 1
fi

sed -i.bak "s/version: \".*\"/version: \"$1\"/g" ../../src/config.neon
rm ../../src/config.neon.bak

sed -i.bak "s/download\/.*\/flickr_downloadr\.phar/download\/$1\/flickr_downloadr\.phar/g" ../../README.md
rm ../../README.md.bak

# TODO: commit and create tag
Bump version in config and readme
Bump version in config and readme
