Fix a relative path bug
authorBrian Dolbec <dolsen@gentoo.org>
Mon, 11 Feb 2013 23:54:36 +0000 (15:54 -0800)
committerW. Trevor King <wking@tremily.us>
Sun, 15 Dec 2013 04:25:07 +0000 (20:25 -0800)
targets/support/functions.sh

index 6bfa3a279c229e3a4f78142fde6da6a78a094ec1..224833fd3089b3bfbdb289ff96c93ab52b94abc2 100755 (executable)
@@ -20,7 +20,7 @@ exec_in_chroot(){
 # and executes it.
        local file_name=$(basename ${1})
        local subdir=${2}
-       local destdir=".${subdir}/tmp"
+       local destdir="${subdir}/tmp"
 
        echo "--- Copying ${file_name} to ${destdir}"
        copy_to_chroot ${1} ${destdir}
@@ -33,7 +33,7 @@ exec_in_chroot(){
        chmod +x ${chroot_path}/${destdir}/${file_name}
 
        echo "--- Running ${file_name} in chroot ${chroot_path}"
-       ${clst_CHROOT} ${chroot_path} ${destdir}/${file_name} || exit 1
+       ${clst_CHROOT} ${chroot_path} .${destdir}/${file_name} || exit 1
 
        delete_from_chroot ${destdir}/${file_name}
        delete_from_chroot ${destdir}/chroot-functions.sh