mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2024-11-22 07:01:03 +01:00
Reduced complecity
This commit is contained in:
parent
7279d21284
commit
f6ddda7723
@ -43,14 +43,12 @@ case "$os" in
|
|||||||
question "Should the system be encrypted?(y/N)" && read -r encrypt_system
|
question "Should the system be encrypted?(y/N)" && read -r encrypt_system
|
||||||
question "Please type in which Raspberry Pi will be used(e.g.:1,2,3,4,aarch64):" && read -r version
|
question "Please type in which Raspberry Pi will be used(e.g.:1,2,3,4,aarch64):" && read -r version
|
||||||
base_download_url="http://os.archlinuxarm.org/os/";
|
base_download_url="http://os.archlinuxarm.org/os/";
|
||||||
case "$version" in
|
if [ "$version" == "1" ]
|
||||||
"1")
|
then
|
||||||
imagename="ArchLinuxARM-rpi-latest.tar.gz"
|
imagename="ArchLinuxARM-rpi-latest.tar.gz"
|
||||||
;;
|
else
|
||||||
*)
|
|
||||||
imagename="ArchLinuxARM-rpi-$version-latest.tar.gz"
|
imagename="ArchLinuxARM-rpi-$version-latest.tar.gz"
|
||||||
;;
|
fi
|
||||||
esac
|
|
||||||
;;
|
;;
|
||||||
"manjaro")
|
"manjaro")
|
||||||
question "Please type in the version(e.g.:architect,gnome):" && read -r version
|
question "Please type in the version(e.g.:architect,gnome):" && read -r version
|
||||||
|
Loading…
Reference in New Issue
Block a user