From 696589189500a6566e65925ec34848b897624f0d Mon Sep 17 00:00:00 2001 From: bretello Date: Sat, 7 Dec 2019 22:33:29 +0100 Subject: [PATCH] fix genpwd, exclude backlash from created passwords --- functions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions.sh b/functions.sh index 5ff4606..5306c17 100755 --- a/functions.sh +++ b/functions.sh @@ -152,7 +152,8 @@ function genpwd else strlen=32 fi - /bin/cat /dev/urandom | env LC_CTYPE=C gtr -dc '[:graph:]' | fold -w $strlen | head -n 1 + # All characters excluding backlash + env LC_CTYPE=C tr -dc '[:graph]\' < /dev/urandom | fold -w $strlen | head -n 1 }