Skip to content

Instantly share code, notes, and snippets.

View daniel-abramov's full-sized avatar

Daniel Abramov daniel-abramov

  • Munich, Germany
View GitHub Profile
@daniel-abramov
daniel-abramov / update_ver.sh
Created September 15, 2017 15:50
Search and replace the version number based on input parameters to the shell script
#!/bin/sh
# This script will update the specified version for all brands to
# X.Y.Z, where X, Y and Z are input parameters specified by the user.
# Example: `$ sh change_version.sh 1.0.0 2.1.0`
if [ $# -lt 2 ]; then
echo "2 arguments are expected"
exit 1
fi