From da1bfacbc3e6730b36c2a7934a031171c77954eb Mon Sep 17 00:00:00 2001 From: Parabola git Date: Fri, 8 Jul 2016 01:00:35 +0000 Subject: tidy --- .config/git/hooks/post-receive.d/agefile | 2 +- .local/bin/update-agefiles | 2 +- .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 -- cgit v1.2.3