summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/update-agefiles2
-rwxr-xr-x.local/bin/update-gitmeta6
2 files changed, 6 insertions, 2 deletions
diff --git a/.local/bin/update-agefiles b/.local/bin/update-agefiles
index 7b3708f..0e24062 100755
--- a/.local/bin/update-agefiles
+++ b/.local/bin/update-agefiles
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
set -e
cd
diff --git a/.local/bin/update-gitmeta b/.local/bin/update-gitmeta
index 0ace903..90c1940 100755
--- a/.local/bin/update-gitmeta
+++ b/.local/bin/update-gitmeta
@@ -1,6 +1,10 @@
-#!/bin/bash
+#!/usr/bin/env bash
set -e
message="$1"
+if [[ -z "$message" ]]; then
+ >&2 printf 'Usage: %q COMMIT_MESSAGE\n' "$0"
+ exit 1
+fi
cd
if [[ -n $(gitmeta status -s .) ]]; then