Skip to content

Instantly share code, notes, and snippets.

@biddster
biddster / quick-release
Last active July 29, 2017 23:01 — forked from tristanlins/quick-flow.sh
Quick creation of new releases with git flow, without using the release branch.
#!/bin/bash
TAG=${1?"Usage: $0 <release version>"}
function exit_if {
retcode=$?
[[ $retcode = 0 ]] || { echo "${1} - exit code [${retcode}]"; exit $retcode; }
}
if [[ -n "$(git status --porcelain)" ]]; then
echo "Uncommited changes detected!"
# This script work on any system using systemd as the init process.
# It works on Debian/Raspbian Jessie.
# If you have Debian/Rapbian Wheezy and want to use this script with systemd
# follow the information here : https://wiki.debian.org/systemd
# To easily download, install and set at startup:
# wget -O /tmp/download https://gist.github.com/biddster/9a700b0974f3a7b7a34e/download && sudo tar -zxf /tmp/download --strip-components 1 -C /etc/systemd/system/ && sudo systemctl --reload-daemon && sudo systemctl enable Node-RED
# To consult the log : journalctl -u Node-RED
[Unit]