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:
parent
2ae7b3db3c
commit
7277f2057e
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user