mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 19:35:49 +00:00
feat: Check path to custom .iso
This commit is contained in:
parent
5ae6ecbe85
commit
bf832cdab2
1 changed files with 4 additions and 0 deletions
|
|
@ -202,6 +202,10 @@ detectCustom() {
|
|||
local file base
|
||||
CUSTOM=""
|
||||
|
||||
if [ -d "/custom.iso" ]; then
|
||||
error "The file /custom.iso has an invalid path!" && return 1
|
||||
fi
|
||||
|
||||
file=$(find / -maxdepth 1 -type f -iname custom.iso | head -n 1)
|
||||
[ ! -s "$file" ] && file=$(find "$STORAGE" -maxdepth 1 -type f -iname custom.iso | head -n 1)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue