mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-13 04:34:57 +08:00
Update InstallNET.sh
This commit is contained in:
parent
8a28075017
commit
d90a374d80
1 changed files with 1 additions and 1 deletions
|
@ -728,7 +728,7 @@ function getDisk() {
|
|||
}
|
||||
|
||||
# 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"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue