Another bug in master that should be fixed.  This one should apply
cleanly to master.

=================================================================

diff --git a/targets/support/functions.sh b/targets/support/functions.sh
index 6bfa3a2..79fe08a 100755
@@ -1,5 +1,6 @@
 copy_to_chroot() {
        local src_file=$1
+       # needed the above tmp_2 in order to trim the leading / next if it has
one
        local dest_dir=${clst_chroot_path}${2:-/tmp}
        mkdir -p ${dest_dir}
        echo "--- Copying ${src_file##*/} to ${dest_dir}"
@@ -20,7 +21,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 +34,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



-- 
Brian Dolbec <[email protected]>


Reply via email to