Skip to content

Commit

Permalink
put cp in if
Browse files Browse the repository at this point in the history
  • Loading branch information
dbieber committed Feb 1, 2025
1 parent bc9e446 commit b7efa76
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,14 +252,8 @@ runs:
sudo cp -Rp ${{ github.workspace }} ${{ steps.mount_image.outputs.mount }}${repository_path}
;;
esac
sudo cp -Rp ${{ inputs.extra_files_path }} ${{ steps.mount_image.outputs.mount }}${inputs.extra_files_mnt_path}
# if [ -n "${{ inputs.non_image_commands }}" ]; then
# script_path=${script_dir}/non_image_commands.sh
# mkdir -p ${script_dir}
# cat >> ${script_path} <<"INPUT_COMMANDS_EOF"
# ${{ inputs.non_image_commands }}
INPUT_COMMANDS_EOF
/bin/sh $script_path
if [ -n "${{ inputs.extra_files_path }}" ]; then
sudo cp -Rp ${{ inputs.extra_files_path }} ${{ steps.mount_image.outputs.mount }}${inputs.extra_files_mnt_path}
fi
if [ "${{ inputs.use_systemd_nspawn }}x" != "x" -a "${{ inputs.use_systemd_nspawn }}x" != "nox" ]; then
chroot_script_dir=/scripts
Expand Down

0 comments on commit b7efa76

Please sign in to comment.