mirror of
https://github.com/dockur/windows.git
synced 2025-10-29 04:05:50 +00:00
Update install.sh
This commit is contained in:
parent
48807ea887
commit
3913b789bb
1 changed files with 6 additions and 4 deletions
|
|
@ -838,13 +838,15 @@ copyOEM() {
|
||||||
|
|
||||||
buildImage() {
|
buildImage() {
|
||||||
|
|
||||||
local dir="$1"
|
local iso="$1"
|
||||||
|
local dir="$2"
|
||||||
local failed="N"
|
local failed="N"
|
||||||
local cat="BOOT.CAT"
|
local cat="BOOT.CAT"
|
||||||
local log="/run/shm/iso.log"
|
local log="/run/shm/iso.log"
|
||||||
local size size_gb space space_gb desc
|
local base size size_gb space space_gb desc
|
||||||
local out="$TMP/${BASE%.*}.tmp"
|
|
||||||
|
|
||||||
|
base=$(basename "$iso")
|
||||||
|
local out="$TMP/${base%.*}.tmp"
|
||||||
rm -f "$out"
|
rm -f "$out"
|
||||||
|
|
||||||
desc=$(printVersion "$DETECTED" "ISO")
|
desc=$(printVersion "$DETECTED" "ISO")
|
||||||
|
|
@ -1007,7 +1009,7 @@ if ! copyOEM "$DIR"; then
|
||||||
exit 63
|
exit 63
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! buildImage "$DIR"; then
|
if ! buildImage "$ISO" "$DIR"; then
|
||||||
exit 65
|
exit 65
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue