aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-07-15 13:49:28 -0400
committerB. Stack <bgstack15@gmail.com>2022-07-15 13:49:28 -0400
commit3748ab934b469f1b0898eff217a405106487935a (patch)
tree31062d89935f37263dfd34a19eb52ef1d7e2bfdc
parentinitial commit (diff)
downloadphotoprismpull-3748ab934b469f1b0898eff217a405106487935a.tar.gz
photoprismpull-3748ab934b469f1b0898eff217a405106487935a.tar.bz2
photoprismpull-3748ab934b469f1b0898eff217a405106487935a.zip
pass password by value in pp.pyHEADmaster
-rwxr-xr-xpp.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pp.py b/pp.py
index de3cbbe..e12c8cb 100755
--- a/pp.py
+++ b/pp.py
@@ -39,6 +39,8 @@ if os.path.exists(args.password):
with open(args.password,"r") as f:
# Stripping this protects against an innocuous newline in the password file.
password = f.read().rstrip('\n')
+else:
+ password = args.password
#print(f"using password {password}")
if args.list:
action = "list"
bgstack15