mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 19:35:49 +00:00
fix: Check if IP is specified
This commit is contained in:
parent
e5e71f67fa
commit
bba2dff069
1 changed files with 3 additions and 1 deletions
|
|
@ -628,7 +628,9 @@ updateXML() {
|
||||||
local language="$2"
|
local language="$2"
|
||||||
local culture region user admin pass keyboard
|
local culture region user admin pass keyboard
|
||||||
|
|
||||||
sed -i "s/ 20.20.20.1 / ${VM_NET_IP%.*}.1 /g" "$asset"
|
if [ -n "${VM_NET_IP:-}" ]; then
|
||||||
|
sed -i "s/ 20.20.20.1 / ${VM_NET_IP%.*}.1 /g" "$asset"
|
||||||
|
fi
|
||||||
|
|
||||||
[ -z "$HEIGHT" ] && HEIGHT="720"
|
[ -z "$HEIGHT" ] && HEIGHT="720"
|
||||||
[ -z "$WIDTH" ] && WIDTH="1280"
|
[ -z "$WIDTH" ] && WIDTH="1280"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue