lockbox

password manager
Log | Files | Refs | README | LICENSE

commit 6b7187b694df3c8a90b28ac0e214386dceff053b
parent 12a345f8701ed2858cc7ed81c3629f4c6d29dbd2
Author: Sean Enck <sean@ttypty.com>
Date:   Sat, 15 Oct 2022 17:14:25 -0400

remove bash requirement

Diffstat:
M.github/workflows/main.yml | 2+-
Mscripts/version | 5++---
2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml @@ -10,7 +10,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: "deps" - run: apk add go make bash git help2man + run: apk add go make git help2man - name: "build" run: make build - name: "check" diff --git a/scripts/version b/scripts/version @@ -1,15 +1,14 @@ -#!/usr/bin/env bash +#!/usr/bin/env sh if [ ! -d .git ]; then echo "not git controlled" exit 0 fi _version() { - local curr tag minor curr=v$(date +%g.%m.) tag=$(git describe --tags --abbrev=0) minor=00 - if [[ "$tag" == $curr* ]]; then + if echo "$tag" | grep -q "$curr*"; then minor=$(echo "$tag" | cut -d '.' -f 3 | sed 's/^0//g') minor=$((minor+1)) if [ $minor -lt 10 ]; then