mirror of
https://github.com/dockur/windows.git
synced 2025-10-29 12:15:50 +00:00
Update install.sh
This commit is contained in:
parent
5869856124
commit
6107ec0111
1 changed files with 12 additions and 7 deletions
|
|
@ -46,12 +46,15 @@ startInstall() {
|
|||
|
||||
fi
|
||||
|
||||
if [ -f "$STORAGE/windows.base" ]; then
|
||||
local base previous
|
||||
base=$(basename $iso)
|
||||
previous=$(<"$STORAGE/windows.base")
|
||||
if [ -n "$previous" ]; then
|
||||
local previous="$STORAGE/windows.base"
|
||||
|
||||
if [ -f "$previous" ]; then
|
||||
previous=$(<"$previous")
|
||||
if [ -n "$previous" ]; then
|
||||
previous="$STORAGE/$previous"
|
||||
if [ -f "$previous" ]; then
|
||||
rm -f "$previous" || true
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
@ -132,9 +135,11 @@ finishInstall() {
|
|||
cp -f /run/version "$STORAGE/windows.ver"
|
||||
|
||||
if [[ "$iso" == "$STORAGE/"* ]]; then
|
||||
if [[ "$aborted" != [Yy1]* ]] || [ -z "$CUSTOM" ]; then
|
||||
base=$(basename $iso)
|
||||
echo "$base" > "$STORAGE/windows.base"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ "${PLATFORM,,}" == "x64" ]]; then
|
||||
if [[ "${BOOT_MODE,,}" == "windows_legacy" ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue