Skip to content

Commit

Permalink
debian-11.sh: Prevent dist-upgrade from raspbian for now
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
  • Loading branch information
theCalcaholic committed May 2, 2024
1 parent e883baa commit b0f86cc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/ncp-dist-upgrade.d/debian-11.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

set -eu -o pipefail

if grep -R 'raspberrypi.com' /etc/apt/sources.list* > /dev/null
then
echo "WARN: Raspbian system detected!
There have been errors reported when upgrading from Raspbian which are still being worked on.
Please try this command again in some time."
exit 0
fi

new_cfg=/usr/local/etc/ncp-recommended.cfg
[[ -f "${new_cfg}" ]] || { echo "Already on the lastest recommended distribution. Abort." >&2; exit 1; }

Expand Down

0 comments on commit b0f86cc

Please sign in to comment.