From: martin f. krafft Date: Thu, 21 Feb 2019 10:19:37 +0000 (+1300) Subject: default argument to confvars X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/b9e12077746dd665d40dae09942e168caecc4f16?ds=sidebyside;hp=36a194739e810e10c65e5236baa20aafd6d1d3d6 default argument to confvars --- 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")