Commit: 65a5b7b3cd613cf8228501f181f087a836a63d29
Parent: 7af28bc823d2a99e218dfd7f7af50309ecd140b5
Author: Klemens Nanni
Date: Mon, 29 Feb 2016 08:30:55 +0100
Change comment style
Diffstat:
M | tpm | | | 16 | ++++------------ |
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/tpm b/tpm
@@ -16,9 +16,7 @@
umask 077
-##
-# Variables
-##
+### Variables ###
GPG_OPTS="--quiet --yes --batch"
STORE_DIR="${PASSWORD_STORE_DIR:-${HOME}/.password-store}"
@@ -33,9 +31,7 @@ else
GPG_OPTS="${GPG_OPTS} --default-recipient-self"
fi
-##
-# Helper
-##
+### Helper ###
abort() {
echo "${1}" 1>&2
@@ -66,9 +62,7 @@ list() {
echo
}
-##
-# Commands
-##
+### Commands ###
show() {
[ -z "${1}" ] && abort "USAGE: tpm show ENTRY"
@@ -95,9 +89,7 @@ insert() {
| gpg2 ${GPG_OPTS} --encrypt --output "${STORE_DIR}"/"${1}".gpg
}
-##
-# Parse input
-##
+### Parse input ###
[ $# -gt 2 ] && abort "tpm doesn't accept more than two arguments."