fuse-client: password from file

This commit is contained in:
ed 2021-03-13 00:14:22 +01:00
parent 0696610dee
commit 46b6abde3f

View file

@ -1008,6 +1008,12 @@ def main():
log = null_log log = null_log
dbg = null_log dbg = null_log
if ar.a and ar.a.startswith("$"):
fn = ar.a[1:]
log("reading password from file [{}]".format(fn))
with open(fn, "rb") as f:
ar.a = f.read().decode("utf-8").strip()
if WINDOWS: if WINDOWS:
os.system("rem") os.system("rem")