Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ale5000-git committed Aug 9, 2023
1 parent f2364b2 commit 5741082
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,16 @@ jobs:
echo '==============='
echo 'RECOVERY OUTPUT'
echo '==============='
cat "${workspace_path:?}/recovery-simulator/output/recovery-output.log"
if test -e "${workspace_path:?}/recovery-simulator/output/recovery-output.log"; then
cat "${workspace_path:?}/recovery-simulator/output/recovery-output.log"
fi
printf '\n\n'
echo '==============='
echo 'INSTALLED FILES'
echo '==============='
if test -e "${workspace_path:?}/recovery-simulator/output/installed-files.log"; then
cat "${workspace_path:?}/recovery-simulator/output/installed-files.log"
fi
- name: "SHA256"
if: "${{ github.event_name != 'pull_request' }}"
run: |
Expand Down
11 changes: 6 additions & 5 deletions recovery-simulator/recovery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,6 @@ if test "${uname_o_saved:?}" != 'MS/Windows' && test "${uname_o_saved:?}" != 'Ms
sudo chattr -a "${recovery_logs_dir:?}/recovery-stderr.log" || fail_with_msg "chattr failed on 'recovery-stderr.log'"
fi

# List installed files
#ls -ARFl --color=always -- "${BASE_SIMULATION_PATH}" || true

parse_recovery_output()
{
_last_zip_name=''
Expand All @@ -372,8 +369,12 @@ parse_recovery_output()
}

# Parse recovery output
parse_recovery_output true "${recovery_logs_dir}/recovery-output-raw.log" "${recovery_logs_dir}/recovery-output.log"
parse_recovery_output false "${recovery_logs_dir}/recovery-raw.log" "${recovery_logs_dir}/recovery.log"
parse_recovery_output true "${recovery_logs_dir:?}/recovery-output-raw.log" "${recovery_logs_dir:?}/recovery-output.log"
parse_recovery_output false "${recovery_logs_dir:?}/recovery-raw.log" "${recovery_logs_dir:?}/recovery.log"

# List installed files
rm -rf -- "${_android_sys:?}/bin" # It contains all symlinks of BusyBox, so remove it for now
ls -A -R -F -l -n --color='never' -- "${BASE_SIMULATION_PATH}" 1> "${recovery_logs_dir:?}/installed-files.log" || true

# Final cleanup
cd "${_init_dir:?}" || fail_with_msg 'Failed to change back the folder'
Expand Down

0 comments on commit 5741082

Please sign in to comment.