action: GUEST

This commit is contained in:
zenobit 2025-03-03 14:59:12 +01:00
parent 92222d6caf
commit 4ea7ba3e45
1 changed files with 27 additions and 27 deletions

4
action
View File

@ -8,7 +8,7 @@ function write_output() {
RELEASES=$(cut -d: -f1 < "public/tmp_${OS}" | cut -d' ' -f2 | sort -ur | paste -sd ' ') RELEASES=$(cut -d: -f1 < "public/tmp_${OS}" | cut -d' ' -f2 | sort -ur | paste -sd ' ')
# Check if 'edition' function exists and load it if present # Check if 'edition' function exists and load it if present
if grep -q 'GUEST' "actions/${OS}"; then 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 ' ')") GUEST=$(printf 'GUEST="%s"\n' "$(grep 'GUEST' < "actions/${OS}" | cut -d'"' -f2)")
else else
GUEST=$(echo -e "\n") GUEST=$(echo -e "\n")
fi fi
@ -43,7 +43,7 @@ RELEASES="%s"
' "$OS" "$OSNAME" "$PRETTY" "$BASEDOF" "$DESCRIPTION" "$HOMEPAGE" "$CREDENTIALS" "$GUEST" "$IMAGE_TYPE" "$RELEASES" "$EDITIONS" "$REST" | tee -a "public/${OS}" ' "$OS" "$OSNAME" "$PRETTY" "$BASEDOF" "$DESCRIPTION" "$HOMEPAGE" "$CREDENTIALS" "$GUEST" "$IMAGE_TYPE" "$RELEASES" "$EDITIONS" "$REST" | tee -a "public/${OS}"
# Append content from tmp_${OS} to TODO/all and remove the temporary file # Append content from tmp_${OS} to TODO/all and remove the temporary file
cat "public/tmp_${OS}" >> TODO/all cat "public/tmp_${OS}" >> TODO/all
rm "public/tmp_${OS}" #rm "public/tmp_${OS}"
echo echo
} }