projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
686e2f6
)
fix for password file missing
author
Chris Koeritz
<fred@gruntose.com>
Wed, 7 Feb 2018 20:26:45 +0000
(15:26 -0500)
committer
Chris Koeritz
<fred@gruntose.com>
Wed, 7 Feb 2018 20:26:45 +0000
(15:26 -0500)
scripts/security/password_functions.sh
patch
|
blob
|
history
diff --git
a/scripts/security/password_functions.sh
b/scripts/security/password_functions.sh
index 08409311b94dd4484ade65a43fd2d46da5c29403..92e0d71e640aaf4c7bb08f401e27652eddcd761d 100644
(file)
--- a/
scripts/security/password_functions.sh
+++ b/
scripts/security/password_functions.sh
@@
-20,6
+20,11
@@
function load_password()
echo 'The load_password function needs a filename to read the password from.'
return 1
fi
+ if [ ! -f "$passfile" ]; then
+ # no file, which is not an error necessarily, but return a blank password
+ # in any case.
+ return 0
+ fi
local passwd
read passwd < "$passfile"
echo "$passwd"