Skip to content

Commit b0f86cc

Browse files
committed
debian-11.sh: Prevent dist-upgrade from raspbian for now
Signed-off-by: Tobias K <[email protected]>
1 parent e883baa commit b0f86cc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bin/ncp-dist-upgrade.d/debian-11.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
set -eu -o pipefail
44

5+
if grep -R 'raspberrypi.com' /etc/apt/sources.list* > /dev/null
6+
then
7+
echo "WARN: Raspbian system detected!
8+
There have been errors reported when upgrading from Raspbian which are still being worked on.
9+
Please try this command again in some time."
10+
exit 0
11+
fi
12+
513
new_cfg=/usr/local/etc/ncp-recommended.cfg
614
[[ -f "${new_cfg}" ]] || { echo "Already on the lastest recommended distribution. Abort." >&2; exit 1; }
715

0 commit comments

Comments
 (0)