sekrit: don't make output file read-only

This makes it easier to overwrite the output with `rm -P` or `shred`.
This commit is contained in:
Lucas 2022-06-17 15:55:36 +00:00
parent 2ae7b3db3c
commit 7277f2057e
1 changed files with 1 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
# sekrit
# Written in 2018-2020 by Lucas
# Written in 2018-2020,2022 by Lucas
# CC0 1.0 Universal/Public domain - No rights reserved
#
# To the extent possible under law, the author(s) have dedicated all
@ -88,8 +88,6 @@ sekrit_add()
else
cat -
fi | gpg2 -qae -r "$SEKRIT_GPG_ID" >"$path"
# make it read-only
chmod -- 400 "$path"
}
sekrit_cp()