Fix edit ownership preservance by using cp

This commit is contained in:
Tobias Reisinger 2021-02-21 23:13:41 +01:00
parent 6a53a49161
commit daef727a61

View file

@ -23,4 +23,6 @@ $priv_cmd chown $user:$group "$filepath"
$EDITOR "$filepath" $EDITOR "$filepath"
$priv_cmd mv "$filepath" "$1" $priv_cmd cp "$filepath" "$1"
rm "$filepath"