summaryrefslogtreecommitdiff
path: root/bin/guiscripts/dmpassgen
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-04-04 14:02:28 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-04-04 14:02:28 +0200
commitdc03fb40fe55a7dc88c07509b47299223d4d5815 (patch)
tree93d33df604005218d287d535b37dfc4ab9de307d /bin/guiscripts/dmpassgen
parent1496b8724c39dd6d16a46916ad4ed47a83a44852 (diff)
cleaned up scripts, use sh (-> dash) where possible
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}"