From 0a5d491177920d915ee98b96e893785f7f7afaf5 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 15 May 2024 15:57:16 +0200 Subject: [PATCH] feat: Convert line endings (#494) --- src/install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/install.sh b/src/install.sh index 550e4f1..653edc9 100644 --- a/src/install.sh +++ b/src/install.sh @@ -936,7 +936,7 @@ copyOEM() { local dir="$1" local folder="/oem" - local src + local src dest file [ ! -d "$folder" ] && folder="/OEM" [ ! -d "$folder" ] && folder="$STORAGE/oem" @@ -952,13 +952,16 @@ copyOEM() { error "failed to locate 'sources' folder in ISO image!" && return 1 fi - local dest="$src/\$OEM\$/\$1/" + dest="$src/\$OEM\$/\$1/" mkdir -p "$dest" if ! cp -r "$folder" "$dest"; then error "Failed to copy OEM folder!" && return 1 fi + file=$(find "$dest" -maxdepth 1 -type f -iname install.bat | head -n 1) + [ -f "$file" ] && unix2dos -q "$file" + return 0 }