Skip to content

Commit

Permalink
Add some debugging info
Browse files Browse the repository at this point in the history
  • Loading branch information
syncom committed May 21, 2024
1 parent 428a60f commit e730b29
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ get_manifest_template_hack() {
file_release() {
get_manifest_template_hack

local zip_archive_dir="${INPUT_ZIP_ARCHIVE_DIR:-}"
local artifacts_dir="${INPUT_ARTIFACTS_DIR:-}"
local base_install_path="${INPUT_BASE_INSTALL_PATH_ON_DEVICE:-}"
[ -z "${artifacts_dir}" ] && err "No artifacts directory provided"
[ -z "${base_install_path}" ] && err "No base install path provided"

"${TRH_BINARY_PATH}" prepare --zip-target --target="${zip_archive_dir}" --file-base-path="${base_install_path}"
"${TRH_BINARY_PATH}" prepare --target="${artifacts_dir}" --file-base-path="${base_install_path}"

"${TRH_BINARY_PATH}" release

Expand All @@ -76,14 +76,16 @@ rootfs_release() {
zip_archive_release() {
get_manifest_template_hack

local artifacts_dir="${INPUT_ARTIFACTS_DIR:-}"
local zip_archive_dir="${INPUT_ZIP_ARCHIVE_DIR:-}"
local base_install_path="${INPUT_BASE_INSTALL_PATH_ON_DEVICE:-}"
[ -z "${artifacts_dir}" ] && err "No artifacts directory provided"
[ -z "${zip_archive_dir}" ] && err "No zip archive directory provided"
[ -z "${base_install_path}" ] && err "No base install path provided"

"${TRH_BINARY_PATH}" prepare --target="${artifacts_dir}" --file-base-path="${base_install_path}"
"${TRH_BINARY_PATH}" prepare --zip-target --target="${zip_archive_dir}" --file-base-path="${base_install_path}"

"${TRH_BINARY_PATH}" release
# debugging
cat manifest.json
}

do_it() {
Expand Down

0 comments on commit e730b29

Please sign in to comment.