scripts/mkimage: change image owner back to the calling user

This commit is contained in:
Stefan Saraev 2015-04-05 17:43:01 +03:00
parent fc8f8082ea
commit b20d36e3e0

View File

@ -299,5 +299,10 @@ fi # bootloader
echo "image: compressing..."
gzip $DISK
# set owner
if [ -n "$SUDO_USER" ] ; then
chown $SUDO_USER: $DISK.gz
fi
# cleanup
cleanup