cem-utils

Random utilities
git clone git://git.ckyln.com/~cem/cem-utils.git
Log | Files | Refs | README

commit 4c4aa972b12c507e3dd5a1295439b26fef6bc656
parent 858a8e8189cb8d6415a029b53ea7f53eec603988
Author: Cem Keylan <cem@ckyln.com>
Date:   Wed, 19 Feb 2020 20:10:15 +0300

pm: print usage to stdout

Diffstat:
Mpm/pm | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pm/pm b/pm/pm @@ -8,7 +8,7 @@ usage() { printf '\033[1;36m-> \033[m%s\n' "usage: ${0##*/} [a|d|l|s] [options]" "[d]el <name> - Deletes given enry" \ "[l]ist - Lists all the passwords" \ "[s]how <name> - Shows the given password" "" \ - "VARIABLES:" "PM_DIR: $PM_DIR" "PM_GPG_USER: $PM_GPG_USER" ; exit "${1:-0}" ;} + "VARIABLES:" "PM_DIR: $PM_DIR" "PM_GPG_USER: $PM_GPG_USER" >&2 ; exit "${1:-0}" ;} gpg="$(command -v gpg2 || command -v gpg)" || die "gnupg cannot be found" case "$1" in