Skip to content

Commit

Permalink
feat: Convert line endings (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored May 15, 2024
1 parent 0805553 commit 0a5d491
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
}

Expand Down

0 comments on commit 0a5d491

Please sign in to comment.