summaryrefslogtreecommitdiff
path: root/bin/guiscripts/dmpassgen
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-04-05 14:30:21 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-04-05 14:30:21 +0200
commite4c833e535dcda3dd3145e06f2d7f187e2197efb (patch)
tree10be7ce47fd56cf3f8e694efe266c5c6e67f4b0c /bin/guiscripts/dmpassgen
parenta86e7cfce4bc2167383a071856f5deba77f30a5b (diff)
parentc41328bec94c2d3fe58b6cc0db7336702b054cb7 (diff)
Merge remote-tracking branch 'refs/remotes/origin/main'
Diffstat (limited to 'bin/guiscripts/dmpassgen')
-rwxr-xr-xbin/guiscripts/dmpassgen5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/guiscripts/dmpassgen b/bin/guiscripts/dmpassgen
index c627a1d..12d911d 100755
--- a/bin/guiscripts/dmpassgen
+++ b/bin/guiscripts/dmpassgen
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/env sh
choice="$(echo -ne "multiline\nsingle" | dmenu -l 1 -g 2)"
test -z "${choice}" && exit 1
@@ -12,7 +12,8 @@ then
test -z "${login}" && exit 1
url="$(echo -n "" | dmenu -p "url:")"
test -z "${url}" && exit 1
- echo -e "${password}\nlogin: ${login}\nurl: ${url}" | pass insert -mf "${password}"
+ echo "${password}\nlogin: ${login}\nurl: ${url}" |
+ pass insert -mf "${password}"
pass generate -ci "${password}"
else
pass generate -cf "${password}"