mirror of
https://github.com/lisanet/PiShrink-macOS.git
synced 2025-12-23 18:50:09 +00:00
Give the new file the same ownership as the old file
(instead of having it always owned just by root)
This commit is contained in:
parent
201db16c93
commit
3568798dd4
@ -45,6 +45,8 @@ if [ -n "$2" ]; then
|
||||
echo "ERROR: Could not copy file..."
|
||||
exit -5
|
||||
fi
|
||||
old_owner=$(stat -c %u:%g "$1")
|
||||
chown $old_owner "$2"
|
||||
img="$2"
|
||||
fi
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user