From 99f49ca9bc48204469048ab49b831be1ee084af9 Mon Sep 17 00:00:00 2001 From: bretello Date: Fri, 14 Feb 2020 16:37:51 +0100 Subject: [PATCH] use absolute path for cat in genpwd function --- functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.sh b/functions.sh index a42fd9f..c090100 100755 --- a/functions.sh +++ b/functions.sh @@ -148,7 +148,7 @@ function genpwd else strlen=32 fi - cat /dev/urandom | env LC_CTYPE=C tr -dc '[:graph:]' | fold -w $strlen | head -n 1 + /bin/cat /dev/urandom | env LC_CTYPE=C gtr -dc '[:graph:]' | fold -w $strlen | head -n 1 }