update build.sh
This commit is contained in:
2
build.sh
2
build.sh
@@ -284,7 +284,7 @@ download_lineageos_boot() {
|
|||||||
|
|
||||||
echo "Fetching latest LineageOS build information for dodge..."
|
echo "Fetching latest LineageOS build information for dodge..."
|
||||||
|
|
||||||
BOOT_URL=$(${BUSYBOX} curl -s "https://download.lineageos.org/api/v2/devices/dodge/builds" | ${PYTHON} -c 'import sys,json;d=json.load(sys.stdin);boot=[f for f in d[0]["files"] if f["filename"]=="boot.img"][0];print(boot["url"])' 2>/dev/null)
|
BOOT_URL=$(${BUSYBOX} wget -qO- "https://download.lineageos.org/api/v2/devices/dodge/builds" | ${PYTHON} -c 'import sys,json;d=json.load(sys.stdin);boot=[f for f in d[0]["files"] if f["filename"]=="boot.img"][0];print(boot["url"])' 2>/dev/null)
|
||||||
|
|
||||||
if [ -z "$BOOT_URL" ]; then
|
if [ -z "$BOOT_URL" ]; then
|
||||||
echo "Error: Failed to fetch boot.img URL from LineageOS API"
|
echo "Error: Failed to fetch boot.img URL from LineageOS API"
|
||||||
|
|||||||
Reference in New Issue
Block a user