From dc03fb40fe55a7dc88c07509b47299223d4d5815 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 4 Apr 2023 14:02:28 +0200 Subject: cleaned up scripts, use sh (-> dash) where possible --- bin/guiscripts/dmpassgen | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin/guiscripts/dmpassgen') 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}" -- cgit v1.2.3