Skip to content

Commit

Permalink
fix: Check returnvalues
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Oct 14, 2024
1 parent 8724d42 commit e7b1302
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -704,8 +704,7 @@ addDriver() {
esac

local dest="$path/$target/$driver"
mkdir -p "$dest"

mkdir -p "$dest" || return 1
cp -Lr "$path/$driver/$folder/." "$dest" || return 1

return 0
Expand All @@ -732,7 +731,7 @@ addDrivers() {

local target="\$WinPEDriver\$"
local dest="$drivers/$target"
mkdir -p "$dest"
mkdir -p "$dest" || return 1

wimlib-imagex update "$file" "$index" --command "delete --force --recursive /$target" >/dev/null || true

Expand All @@ -757,7 +756,7 @@ addDrivers() {
"win11x64"* | "win2025"* )
# Workaround Virtio GPU driver bug
local dst="$src/\$OEM\$/\$\$/Drivers"
mkdir -p "$dst"
mkdir -p "$dst" || return 1
cp -Lr "$dest/." "$dst" || return 1
rm -rf "$dest/viogpudo"
;;
Expand Down

0 comments on commit e7b1302

Please sign in to comment.