Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit f161c55

Browse files
committed
Conditionnaly execute wimlib-imagex if rsync command succeeded
1 parent 638a330 commit f161c55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bootiso

+1-1
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ copyWithRsync() {
11951195
# shellcheck disable=SC2086
11961196
rsync -r -q -I --no-links --no-perms --no-owner --no-group $rsyncOptions "$isoMountPoint"/. "$usbMountPoint"
11971197
local status=$?
1198-
if [ -f "$wimFile" ] && [ "$disableWimsplit" == 'false' ]; then
1198+
if ((status == 0)) && [ -f "$wimFile" ] && [ "$disableWimsplit" == 'false' ]; then
11991199
echo
12001200
wimlib-imagex split "$wimFile" "$usbMountPoint/sources/install.swm" 1024 |& indentAll
12011201
fi

0 commit comments

Comments
 (0)