diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-11-10 19:38:08 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-11-10 23:04:25 +0100 |
| commit | 6f07a51d966017215db312d13f3185006566bf97 (patch) | |
| tree | eecd3083d8460699acb1f6710ac041636c36f279 /config-backup | |
| parent | a32e6b3ea99cbb16bbadf975e83e3a29732db450 (diff) | |
| download | scripts-6f07a51d966017215db312d13f3185006566bf97.tar.gz scripts-6f07a51d966017215db312d13f3185006566bf97.zip | |
No need to redact psw anymore, I use a sane method
Diffstat (limited to 'config-backup')
| -rwxr-xr-x | config-backup | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/config-backup b/config-backup index 33d6aba..87bedeb 100755 --- a/config-backup +++ b/config-backup | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | folder=$HOME/box/configbackups | 5 | folder=$HOME/box/configbackups |
| 6 | 6 | ||
| 7 | dotfiles=".bash_profile .bashrc .profile .inputrc .mblaze .nexrc .tmux.conf .virc .xinitrc" | 7 | dotfiles=".bash_profile .bashrc .profile .inputrc .mblaze .nexrc .tmux.conf .virc .xinitrc .config/isyncrc" |
| 8 | config="colors fontconfig git imv msmtp zathura" | 8 | config="colors fontconfig git imv msmtp zathura" |
| 9 | src="dmenu dwm st" | 9 | src="dmenu dwm st" |
| 10 | 10 | ||
| @@ -26,9 +26,3 @@ for i in $src | |||
| 26 | done | 26 | done |
| 27 | 27 | ||
| 28 | cp "$HOME"/.ssh/config "$folder"/ssh/ | 28 | cp "$HOME"/.ssh/config "$folder"/ssh/ |
| 29 | |||
| 30 | # redact | ||
| 31 | |||
| 32 | sed 's/^password .*/password REDACTED/' \ | ||
| 33 | < "$folder"/config/msmtp/config > "$folder"/config/msmtp/config.redacted | ||
| 34 | rm "$folder"/config/msmtp/config | ||
