From d9290f7262af4d5ecd95ef790a6ef0f916daca4d Mon Sep 17 00:00:00 2001 From: mattmcw Date: Sat, 25 Feb 2023 22:22:42 -0500 Subject: [PATCH] Add branch_name.sh to print out only the branch name --- app/data/cfg.json | 2 +- app/package-lock.json | 2 +- app/package.json | 2 +- data/cfg.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- processing/mcopy/cfg.json | 2 +- scripts/branch_name.sh | 7 +++++++ 8 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 scripts/branch_name.sh diff --git a/app/data/cfg.json b/app/data/cfg.json index 2a62269..507faf4 100644 --- a/app/data/cfg.json +++ b/app/data/cfg.json @@ -1,5 +1,5 @@ { - "version": "1.7.19", + "version": "1.7.20", "ext_port": 1111, "profiles": { "mcopy": { diff --git a/app/package-lock.json b/app/package-lock.json index 4c6090d..c52834a 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -1,6 +1,6 @@ { "name": "mcopy-app", - "version": "1.7.19", + "version": "1.7.20", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/app/package.json b/app/package.json index df9f997..1d9f35d 100644 --- a/app/package.json +++ b/app/package.json @@ -1,6 +1,6 @@ { "name": "mcopy-app", - "version": "1.7.19", + "version": "1.7.20", "description": "GUI for the mcopy small gauge film optical printer platform", "main": "main.js", "scripts": { diff --git a/data/cfg.json b/data/cfg.json index 2a62269..507faf4 100644 --- a/data/cfg.json +++ b/data/cfg.json @@ -1,5 +1,5 @@ { - "version": "1.7.19", + "version": "1.7.20", "ext_port": 1111, "profiles": { "mcopy": { diff --git a/package-lock.json b/package-lock.json index 92dd87b..a5ef0ff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mcopy", - "version": "1.7.19", + "version": "1.7.20", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "mcopy", - "version": "1.7.19", + "version": "1.7.20", "license": "MIT", "dependencies": { "arduino": "file:app/lib/arduino", diff --git a/package.json b/package.json index e7d955f..55bee30 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mcopy", - "version": "1.7.19", + "version": "1.7.20", "description": "Small gauge film optical printer platform", "main": "build.js", "directories": { diff --git a/processing/mcopy/cfg.json b/processing/mcopy/cfg.json index 2a62269..507faf4 100644 --- a/processing/mcopy/cfg.json +++ b/processing/mcopy/cfg.json @@ -1,5 +1,5 @@ { - "version": "1.7.19", + "version": "1.7.20", "ext_port": 1111, "profiles": { "mcopy": { diff --git a/scripts/branch_name.sh b/scripts/branch_name.sh new file mode 100644 index 0000000..5240625 --- /dev/null +++ b/scripts/branch_name.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +branch_name=$(git symbolic-ref -q HEAD) +branch_name=${branch_name##refs/heads/} +branch_name=${branch_name:-HEAD} + +echo $branch_name