From 9fec285df02b315c08318efaec229c314c0a0b30 Mon Sep 17 00:00:00 2001 From: "Jason N." <33561705+JasonN3@users.noreply.github.com> Date: Tue, 2 Apr 2024 16:36:57 -0400 Subject: [PATCH] fix relative path --- README.md | 2 +- xorriso/gen_input.sh | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index bd995c6..e7d85a7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![Build status](https://github.com/jasonn3/build-container-installer/actions/workflows/tests.yml/badge.svg?event=push) +![Build status](https://github.com/jasonn3/build-container-installer/actions/workflows/tests.yml/badge.svg?event=push) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/35a48e77e64f469ba19d60a1a1e0be71)](https://app.codacy.com/gh/JasonN3/build-container-installer/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) # Build Container Installer Action This action is used to enerate an ISO for installing an OSTree stored in a container image. This utilizes the anaconda command `ostreecontainer` diff --git a/xorriso/gen_input.sh b/xorriso/gen_input.sh index 0dbc5f9..47e17d5 100644 --- a/xorriso/gen_input.sh +++ b/xorriso/gen_input.sh @@ -1,7 +1,7 @@ #!/bin/bash echo "-report_about WARNING" -echo "-indev ${PWD}/results/images/boot.iso" +echo "-indev ${PWD}/../results/images/boot.iso" echo "-outdev ${ISO_NAME}" echo "-boot_image any replay" echo "-joliet on" @@ -23,7 +23,7 @@ then pushd "${FLATPAK_DIR}" > /dev/null for file in $(find * -type f) do - echo "-map $(pwd)/${file} flatpak/${file}" + echo "-map ${PWD}/${file} flatpak/${file}" echo "-chmod 0444 flatpak/${file}" done popd > /dev/null @@ -31,14 +31,14 @@ fi if [ -f $(pwd)/sb_pubkey.der ] then - echo "-map $(pwd)/sb_pubkey.der sb_pubkey.der" + echo "-map $(pwd)/../sb_pubkey.der sb_pubkey.der" echo "-chmod 0444 /sb_pubkey.der" fi -pushd "${PWD}/container" > /dev/null +pushd "${PWD}/../container" > /dev/null for file in $(find "${IMAGE_NAME}-${IMAGE_TAG}" -type f) do - echo "-map $(pwd)/${file} ${file}" + echo "-map ${PWD}/${file} ${file}" echo "-chmod 0444 ${file}" done popd > /dev/null