-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathfetch_build
More file actions
18 lines (12 loc) · 631 Bytes
/
fetch_build
File metadata and controls
18 lines (12 loc) · 631 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
[[ "$EUID" -eq "0" ]] || { sudo -p "Please enter your password to continue: " "$0" "$@"; exit $?; }
set -e
rm -f ubuntu.iso
source fetch_build.conf
if command -v axel 2> /dev/null; then
[[ -z "$DOWNLOAD_ISO" ]] && axel -qo ubuntu.iso "https://releases.ubuntu.com/$CODENAME/ubuntu-$RELEASE-desktop-$ARCH.iso" || axel -qo ubuntu.iso "$DOWNLOAD_ISO"
else
[[ -z "$DOWNLOAD_ISO" ]] && wget -q -O ubuntu.iso "https://releases.ubuntu.com/$CODENAME/ubuntu-$RELEASE-desktop-$ARCH.iso" || wget -q -O ubuntu.iso "$DOWNLOAD_ISO"
fi
sudo chmod +x ./build/build.sh ./build/switch.sh ./build/minimal.sh
sudo make build.iso