Update install.sh

This commit is contained in:
Kroese 2024-05-26 03:47:17 +02:00 committed by GitHub
parent 30ae0f6e73
commit 42ecb6ceb7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -750,7 +750,6 @@ addDrivers() {
addFolder() { addFolder() {
local src="$1" local src="$1"
local dest file
local folder="/oem" local folder="/oem"
[ ! -d "$folder" ] && folder="/OEM" [ ! -d "$folder" ] && folder="/OEM"
@ -761,11 +760,12 @@ addFolder() {
local msg="Adding OEM folder to image..." local msg="Adding OEM folder to image..."
info "$msg" && html "$msg" info "$msg" && html "$msg"
dest="$src/\$OEM\$/\$1/" local dest="$src/\$OEM\$/\$1/"
mkdir -p "$dest" mkdir -p "$dest"
! cp -r "$folder" "$dest" && return 1 ! cp -r "$folder" "$dest" && return 1
local file
file=$(find "$dest" -maxdepth 1 -type f -iname install.bat | head -n 1) file=$(find "$dest" -maxdepth 1 -type f -iname install.bat | head -n 1)
[ -f "$file" ] && unix2dos -q "$file" [ -f "$file" ] && unix2dos -q "$file"