This commit is contained in:
zenobit 2025-03-01 07:11:40 +01:00
parent 8d53d06fe0
commit fb323f9d60
1 changed files with 3 additions and 3 deletions

6
action
View File

@ -7,12 +7,12 @@ function write_output() {
# Load the list of RELEASES
RELEASES=$(cut -d: -f1 < "public/tmp_${OS}" | cut -d' ' -f2 | sort -ur | paste -sd ' ')
# Check if 'edition' function exists and load it if present
if grep -q 'GUEST=' "actions/${OS}"; then
GUEST=$(printf 'GUEST="%s"\n')
if grep -q 'GUEST' "actions/${OS}"; then
GUEST=$(printf 'GUEST="%s"\n' "$(cut -d: -f1 < "public/tmp_${OS}" | cut -d' ' -f3 | sort -ur | paste -sd ' ')")
else
GUEST=$(echo -e "\n")
fi
if grep -q 'IMAGE_TYPE=' "actions/${OS}"; then
if grep -q 'IMAGE_TYPE' "actions/${OS}"; then
IMAGE_TYPE=$(printf 'IMAGE_TYPE="%s"\n')
else
IMAGE_TYPE=$(echo -e "\n")