Use relative path.
authorJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
Mon, 1 Oct 2012 11:09:39 +0000 (11:09 +0000)
committerJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
Mon, 1 Oct 2012 11:09:39 +0000 (11:09 +0000)
targets/support/functions.sh

index 60ad249f62df6a7718a6d5e28d5d77f29db941b9..4018716d4671dea3d25755f20f52b1b3d8f223ae 100644 (file)
@@ -20,8 +20,7 @@ exec_in_chroot(){
 # and executes it.
        local file_name=$(basename ${1})
        local subdir=${2}
-       local destdir=${subdir}/tmp
-       destdir=${destdir#/}
+       local destdir=".${subdir}/tmp"
 
        copy_to_chroot ${1} ${destdir}
        chroot_path=${clst_chroot_path}${subdir}