Documentation updates

This commit is contained in:
Andrew Dunham 2021-07-15 22:38:42 -04:00
parent d77a87fb9e
commit 36e52692e1
2 changed files with 32 additions and 6 deletions

1
lib
View file

@ -123,6 +123,7 @@ sponge() {
local oldperms
oldperms="$(stat -c '%a' "$outfile")"
# Should be a string of length 3 with only digits
if [ "${#oldperms}" = "3" ] && [ -z "$(echo "$oldperms" | tr -d '0-9')" ]; then
chmod "$oldperms" "$tmpfile"
else