diff options
author | Parabola git <git@parabola.nu> | 2016-07-08 01:00:35 +0000 |
---|---|---|
committer | Parabola git <git@parabola.nu> | 2016-07-08 01:00:35 +0000 |
commit | da1bfacbc3e6730b36c2a7934a031171c77954eb (patch) | |
tree | 42ac480e05fc822860454c5f88e6a68b6da55236 | |
parent | eddc4fe5d97af869d51da7c38913c10cf9fa7a6b (diff) |
tidy
-rwxr-xr-x | .config/git/hooks/post-receive.d/agefile | 2 | ||||
-rwxr-xr-x | .local/bin/update-agefiles | 2 | ||||
-rwxr-xr-x | .local/bin/update-gitmeta | 6 |
3 files changed, 7 insertions, 3 deletions
diff --git a/.config/git/hooks/post-receive.d/agefile b/.config/git/hooks/post-receive.d/agefile index 10fc253..91d98ec 100755 --- a/.config/git/hooks/post-receive.d/agefile +++ b/.config/git/hooks/post-receive.d/agefile @@ -1,5 +1,5 @@ #!/bin/bash -set -x + agefile="$(git rev-parse --git-dir)"/info/web/last-modified mkdir -p "$(dirname "$agefile")" && 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 |