summaryrefslogtreecommitdiff
path: root/bin/mw
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mw')
-rwxr-xr-xbin/mw3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/mw b/bin/mw
index 98f2b99..616b528 100755
--- a/bin/mw
+++ b/bin/mw
@@ -1,4 +1,5 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
command -V gpg >/dev/null 2>&1 && GPG="gpg" || GPG="gpg2"
[ -z ${PASSWORD_STORE_DIR+x} ] && PASSWORD_STORE_DIR="$HOME/.password-store"
[ -r "$PASSWORD_STORE_DIR/.gpg-id" ] &&