Update InstallNET.sh

This commit is contained in:
Molly Lau 2023-11-23 14:28:33 +09:00 committed by GitHub
parent 8a28075017
commit d90a374d80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -728,7 +728,7 @@ function getDisk() {
} }
# Allow user to install system to one disk manually. # Allow user to install system to one disk manually.
[[ -n "$1" && "$1" =~ ^[a-z0-9]+$ && "$1" != "all" ]] && { [[ -n "$1" && "$1" != "all" && "$(echo $1 | cut -d '/' -f 3)" =~ ^[a-z0-9]+$ || "$(echo $1 | cut -d '/' -f 3)" =~ ^[a-z]+$ ]] && {
[[ "$1" =~ "/dev/" ]] && IncDisk="$1" || IncDisk="/dev/$1" [[ "$1" =~ "/dev/" ]] && IncDisk="$1" || IncDisk="/dev/$1"
} }