Skip to content

Commit

Permalink
api: clarify suggestions in is_supported_system
Browse files Browse the repository at this point in the history
upgrades are not validated, recommended, or supported in many of the suggested distros so change that wording to say "install" to not potentially confuse users into thinking that upgrades are possible or recommended
  • Loading branch information
theofficialgman committed Nov 27, 2023
1 parent 7a98543 commit 2233b0d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions api
Original file line number Diff line number Diff line change
Expand Up @@ -2585,13 +2585,16 @@ apt.armbian.com")"
echo "Pi-Apps is not supported on WSL."
return 1
elif ([ "$__os_id" == "Debian" ] || [ "$__os_id" == "Raspbian" ]) && [ -f /etc/rpi-issue ] && [ "$__os_release" == 10 ]; then
echo "Pi-Apps is no longer supported on your Pi OS Buster operating system. Consider upgrading to Pi OS Bookworm. https://www.raspberrypi.com/news/bookworm-the-new-version-of-raspberry-pi-os/"
echo "Pi-Apps is no longer supported on your Pi OS ${__os_codename^} operating system. Consider installing Pi OS Bookworm. https://www.raspberrypi.com/news/bookworm-the-new-version-of-raspberry-pi-os/"
return 1
elif ([ "$__os_id" == "Debian" ] || [ "$__os_id" == "Raspbian" ]) && ! printf '%s\n' "11" "$__os_release" | sort -CV ; then
echo "Pi-Apps is not supported on your outdated $__os_id $__os_release operating system. Expect many apps to fail. Consider upgrading your operating system."
elif ([ "$__os_id" == "Debian" ] || [ "$__os_id" == "Raspbian" ]) && [ "$__os_release" -lt 11 ]; then
echo "Pi-Apps is not supported on your outdated ${__os_id^} ${__os_codename^} operating system. Expect many apps to fail. Consider installing a newer operating system."
return 1
elif [ "$__os_id" == "Ubuntu" ] && [ "$__os_release" == "18.04" ] && [ -f /etc/switchroot_version.conf ]; then
echo "Pi-Apps is no longer supported on your outdated Switchroot ${__os_id^} ${__os_codename^} operating system. Consider installing Switchroot Ubuntu Jammy. https://wiki.switchroot.org/wiki/linux/l4t-ubuntu-jammy-installation-guide"
return 1
elif [ "$__os_id" == "Ubuntu" ] && ! printf '%s\n' "20.04" "$__os_release" | sort -CV ; then
echo "Pi-Apps is not supported on your outdated $__os_id $__os_release operating system. Expect many apps to fail. Consider upgrading your operating system."
echo "Pi-Apps is not supported on your outdated ${__os_id^} ${__os_codename^} operating system. Expect many apps to fail. Consider installing a newer operating system."
return 1
elif echo "$PRETTY_NAME" | grep -qi 'manjaro'; then
echo "Pi-Apps is not supported on Manjaro."
Expand Down

0 comments on commit 2233b0d

Please sign in to comment.