chore(default-flatpaks): Print message about checking flatpak IDs only if they are inputted

This commit is contained in:
fiftydinar 2025-02-12 12:47:09 +01:00 committed by GitHub
parent 84264cafae
commit 2586223b3e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -123,7 +123,9 @@ check_flatpak_id_validity_from_flathub () {
get_json_array INSTALL "try .$INSTALL_LEVEL.install[]" "${CONFIG_FILE}"
get_json_array REMOVE "try .$INSTALL_LEVEL.remove[]" "${CONFIG_FILE}"
if [[ "${SYSTEM_FLATHUB_REPO}" == "${FLATHUB_REPO_LINK}" ]] || [[ "${USER_FLATHUB_REPO}" == "${FLATHUB_REPO_LINK}" ]]; then
echo "Safe-checking if ${INSTALL_LEVEL} flatpak IDs are typed correctly. If test fails, build also fails"
if [[ ${#INSTALL[@]} -gt 0 ]] || [[ ${#REMOVE[@]} -gt 0 ]]; then
echo "Safe-checking if ${INSTALL_LEVEL} flatpak IDs are typed correctly. If test fails, build also fails"
fi
if [[ ${#INSTALL[@]} -gt 0 ]]; then
for id in "${INSTALL[@]}"; do
if ! curl --output /dev/null --silent --head --fail "${URL}/${id}"; then