mirror of
https://github.com/lloeki/apply.git
synced 2025-12-06 17:24:39 +01:00
Documentation updates
This commit is contained in:
parent
d77a87fb9e
commit
36e52692e1
2 changed files with 32 additions and 6 deletions
1
lib
1
lib
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue