aboutsummaryrefslogtreecommitdiffstats
path: root/git
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xgit/wipe_irssi_passwords18
1 files changed, 2 insertions, 16 deletions
diff --git a/git/wipe_irssi_passwords b/git/wipe_irssi_passwords
index 69da189..606473c 100755
--- a/git/wipe_irssi_passwords
+++ b/git/wipe_irssi_passwords
@@ -1,16 +1,2 @@
-#!/usr/bin/env python3
-# _*_ coding=utf-8 _*_
-
-import re
-
-
-def main():
- with open("/home/devi/.irssi/config", "r") as config_file:
- lines = config_file.readlines()
- for line in lines:
- print(re.sub("password\\s*=\\s*\"(.*)\"",
- "password=\"\"", line), end="")
-
-
-if __name__ == "__main__":
- main()
+#!/usr/bin/env sh
+sed -e 's/.*password\s*=\s*.*//'