Skip to content

Instantly share code, notes, and snippets.

View Derioss's full-sized avatar

Derioss

View GitHub Profile
@Derioss
Derioss / version.sh
Created November 12, 2020 15:50 — forked from siddharthkrish/version.sh
simple bash script to increment the version number of the format major.minor.build
#!/bin/bash
version="$1"
major=0
minor=0
build=0
# break down the version number into it's components
regex="([0-9]+).([0-9]+).([0-9]+)"
if [[ $version =~ $regex ]]; then