diff --git a/script-for-using-latest-version.sh b/script-for-using-latest-version.sh index 832545a..a7ceac0 100755 --- a/script-for-using-latest-version.sh +++ b/script-for-using-latest-version.sh @@ -13,13 +13,13 @@ IFS=$'\n\t' # you don't need to run this script # this is running automatically on Github each day to update the latest issues -TARGET_URL="https://helloworldraspberrypi.com/" +TARGET_URL="https://helloworld.raspberrypi.org/" BASEDIR=$(dirname "$0") #printf -v page_url "$TARGET_URL/issues" page_url=$(printf '%s\n' "$TARGET_URL/issues") -latest_issue=$(curl -sf "$page_url" | grep "Get PDF" | head -n 1 | sed 's/^.*issues\///' | sed 's/\/pdf.*$//') +latest_issue=$(curl -sf "$page_url" | grep "Download Free PDF" | head -n 1 | sed 's/^.*issues\///' | sed 's/\/pdf.*$//') echo "Latest Issue is " "$latest_issue" file="$BASEDIR/regular-issues.txt";