mirror of
https://github.com/lisanet/PiShrink-macOS.git
synced 2026-02-18 02:55:52 +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..."
|
echo "ERROR: Could not copy file..."
|
||||||
exit -5
|
exit -5
|
||||||
fi
|
fi
|
||||||
|
old_owner=$(stat -c %u:%g "$1")
|
||||||
|
chown $old_owner "$2"
|
||||||
img="$2"
|
img="$2"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user