Migrate to raspberrypi.com

This commit is contained in:
Serge Schneider
2023-09-08 11:39:51 +01:00
parent 64b498b2dd
commit 188c155717
4 changed files with 6 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/sh -e
BOOKSHELF_URL="https://magpi.raspberrypi.org/bookshelf.xml"
BOOKSHELF_URL="https://magpi.raspberrypi.com/bookshelf.xml"
GUIDE_URL="$(curl -s "$BOOKSHELF_URL" | awk -F '[<>]' "/<TITLE>Raspberry Pi Beginner's Guide 4th Edition<\/TITLE>/ {f=1; next} f==1 && /PDF/ {print \$3; exit}")"
OUTPUT="$(basename "$GUIDE_URL" | cut -f1 -d'?')"