From acee5af94779880e61cdd821e49d2c49b035467f Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 29 Nov 2019 19:59:57 +0000 Subject: [PATCH] pash: more comments --- pash | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pash b/pash index f0203f3..1d79e37 100755 --- a/pash +++ b/pash @@ -170,8 +170,12 @@ main() { glob "$2" '*/*' && { mkdir -p "${2%/*}" || die "Couldn't create category '${2%/*}'."; } + # Set 'GPG_TTY' to the current 'TTY' if it + # is unset. Fixes a somewhat rare `gpg` issue. export GPG_TTY=${GPG_TTY:-$(tty)} + # Restrict permissions of any new files to + # only the current user. umask 077 # Ensure that we leave the terminal in a usable