install.sh: Preserve permissions from make install

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
Olaf Hering authored and Ian Campbell committed 2014-09-23 10:12:34 +01:00
1 parent 51f72728d5
commit 4cd7463fd0
1 file changed
-3
-3
View File
@@ -27,9 +27,6 @@ tmp="`mktemp -d`"
echo "Installing Xen from '$src' to '$dst'..." echo "Installing Xen from '$src' to '$dst'..."
(cd $src; tar -cf - * ) | tar -C "$tmp" -xf - (cd $src; tar -cf - * ) | tar -C "$tmp" -xf -
echo " - modifying permissions"
chmod -R a+rX "$tmp"
(cd $tmp; tar -cf - *) | tar --no-same-owner -C "$dst" -xf - (cd $tmp; tar -cf - *) | tar --no-same-owner -C "$dst" -xf -
rm -rf "$tmp" rm -rf "$tmp"
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.