realised that ls commands will differ for platforms
This commit is contained in:
parent
f5a271b56f
commit
ae7bb2d79a
|
@ -112,8 +112,6 @@ select OPTION in "PinePhone device" "PineTab device" "Dont Be Evil devkit"; do
|
|||
esac
|
||||
done
|
||||
|
||||
# Check if already downloaded before downloading
|
||||
ls u-boot.zip || {
|
||||
# Downloading images
|
||||
echo -e "\e[1mDownloading images...\e[0m"
|
||||
WGET=$(wget_cmd)
|
||||
|
@ -122,16 +120,12 @@ ls u-boot.zip || {
|
|||
echo >&2 "UBoot image download failed. Aborting."
|
||||
exit 2
|
||||
}
|
||||
}
|
||||
|
||||
# Check if already downloaded before downloading
|
||||
ls pinephone-rootfs.zip || {
|
||||
ROOTFS_DOWNLOAD="https://gitlab.com/sailfishos-porters-ci/dont_be_evil-ci/-/jobs/artifacts/$BRANCH/download?job=$ROOTFS_JOB"
|
||||
$WGET "${ROOTFS_JOB}.zip" "${ROOTFS_DOWNLOAD}" || {
|
||||
echo >&2 "Root filesystem image download failed. Aborting."
|
||||
exit 2
|
||||
}
|
||||
}
|
||||
|
||||
# Select flash target
|
||||
echo -e "\e[1mWhich SD card do you want to flash?\e[0m"
|
||||
|
|
Loading…
Reference in New Issue