mirror of
https://github.com/dockur/windows.git
synced 2025-10-28 03:45:48 +00:00
fix: Check if ISO is writeable
This commit is contained in:
parent
2a9b310bca
commit
05ebe7cde6
1 changed files with 1 additions and 1 deletions
|
|
@ -344,7 +344,7 @@ startInstall() {
|
||||||
magic=$(dd if="$STORAGE/$BASE" seek=0 bs=1 count=1 status=none | tr -d '\000')
|
magic=$(dd if="$STORAGE/$BASE" seek=0 bs=1 count=1 status=none | tr -d '\000')
|
||||||
magic="$(printf '%s' "$magic" | od -A n -t x1 -v | tr -d ' \n')"
|
magic="$(printf '%s' "$magic" | od -A n -t x1 -v | tr -d ' \n')"
|
||||||
|
|
||||||
if [[ "$magic" == "16" ]]; then
|
if [[ "$magic" == "16" ]] || [ ! -w "$STORAGE/$BASE" ]; then
|
||||||
|
|
||||||
if hasDisk || [[ "$MANUAL" == [Yy1]* ]]; then
|
if hasDisk || [[ "$MANUAL" == [Yy1]* ]]; then
|
||||||
return 1
|
return 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue