From b9e12077746dd665d40dae09942e168caecc4f16 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 21 Feb 2019 23:19:37 +1300 Subject: [PATCH 1/1] default argument to confvars --- .mutt/mkconf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.mutt/mkconf b/.mutt/mkconf index 212a115..e98a9e1 100755 --- a/.mutt/mkconf +++ b/.mutt/mkconf @@ -1,7 +1,7 @@ #!/bin/sh set -eu -FILE="${1:-}" +FILE="${1:-${0%/*}/confvars}" TARGET="${2:-}" if [ ! -f "$FILE" ]; then @@ -62,7 +62,7 @@ cat <<_eof > "$TARGET" # Auto-generated using mkconf from manual.txt # on $(date +'%Y-%m-%d %H:%M:%S') # -# Invoked as: $0 $@ +# Invoked as: $0${1:+ $@} # $(cat "$TMPFILE") -- 2.39.5