diff --git a/buildscripts/icecc_create_env b/buildscripts/icecc_create_env index c0ccb021d06..501a90b40ae 100755 --- a/buildscripts/icecc_create_env +++ b/buildscripts/icecc_create_env @@ -418,8 +418,9 @@ if [ -n "$out_file" ]; then fi echo "creating $md5.tar.gz" +mydir=`pwd` pushd $tempdir > /dev/null -tar -czh --numeric-owner -f "$md5".tar.gz $target_files || { +tar -czh --numeric-owner -f "$mydir/$md5".tar.gz $target_files || { echo "Couldn't create archive" exit 3 }