Skip to content

Commit

Permalink
feat: add group output for copy_files and execute_chroot_script (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteyou authored Feb 13, 2025
1 parent d3da43c commit a7a0aef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/customize
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ fi
function copy_files() {
#move filesystem files
if [ -d "$1" ]; then
echo "::group::Copying $1"
cp -vr --preserve=mode,timestamps "$1" .
echo "::endgroup::"
fi
}

Expand All @@ -69,7 +71,7 @@ function execute_chroot_script() {
fi
fi

echo "Running $1 in chroot..."
echo "::group::Running $1 in chroot..."
cp $1 chroot_script
chmod 755 chroot_script
cp "$DIR/common.sh" common.sh
Expand All @@ -87,6 +89,8 @@ function execute_chroot_script() {
echo "Building on ARM device a armv7l/aarch64/arm64 system, not using qemu"
chroot . /bin/bash /chroot_script
fi

echo "::endgroup::"

#cleanup
rm chroot_script
Expand Down

0 comments on commit a7a0aef

Please # to comment.