Skip to content

Commit

Permalink
r.in.nasadem
Browse files Browse the repository at this point in the history
hide username and password from history
  • Loading branch information
metzm committed Feb 23, 2020
1 parent b4eb0ba commit 13994b6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion grass7/raster/r.in.nasadem/r.in.nasadem.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,14 @@ def main():
# write metadata:
tmphist = grass.tempfile()
f = open(tmphist, "w+")
f.write(os.environ["CMDLINE"])
# hide username and password
cmdline = os.environ["CMDLINE"]
if username is not None and len(username) > 0:
cmdline = cmdline.replace("=" + username, "=xxx")
if password is not None and len(password) > 0:
cmdline = cmdline.replace("=" + password, "=xxx")

f.write(cmdline)
f.close()
source1 = nasadem_version
grass.run_command(
Expand Down

0 comments on commit 13994b6

Please sign in to comment.