summarylogtreecommitdiffstats
path: root/gog-heroes-of-might-and-magic-3-complete-edition-campaign-editor
diff options
context:
space:
mode:
authorSandy Carter2021-02-16 02:01:09 -0500
committerSandy Carter2021-02-16 02:01:09 -0500
commite1aa2f54fb4e964605254cf12db1d4617c51ab4b (patch)
tree68f39f04ac1c4f316f1650e3fdbb87c150054762 /gog-heroes-of-might-and-magic-3-complete-edition-campaign-editor
parent64d8e0a78a21543ccd1953e12662c0b1c1d6a5fa (diff)
downloadaur-e1aa2f54fb4e964605254cf12db1d4617c51ab4b.tar.gz
Fail loaders if fusemount fails
Diffstat (limited to 'gog-heroes-of-might-and-magic-3-complete-edition-campaign-editor')
-rwxr-xr-xgog-heroes-of-might-and-magic-3-complete-edition-campaign-editor6
1 files changed, 5 insertions, 1 deletions
diff --git a/gog-heroes-of-might-and-magic-3-complete-edition-campaign-editor b/gog-heroes-of-might-and-magic-3-complete-edition-campaign-editor
index 71405532a82a..20e2b65bf70c 100755
--- a/gog-heroes-of-might-and-magic-3-complete-edition-campaign-editor
+++ b/gog-heroes-of-might-and-magic-3-complete-edition-campaign-editor
@@ -11,7 +11,11 @@ then
fi
if ! mountpoint "${UNIONFS_MNT}"
then
- unionfs -o cow,allow_other,relaxed_permissions,use_ino,suid,dev,nonempty ${DATA_DIR}=RW:${SOURCE}=RO "${UNIONFS_MNT}"
+ if ! unionfs -o cow,allow_other,relaxed_permissions,use_ino,suid,dev,nonempty ${DATA_DIR}=RW:${SOURCE}=RO "${UNIONFS_MNT}"
+ then
+ echo "Failed to mount unionfs" >&2
+ exit 1
+ fi
fi
cd "${UNIONFS_MNT}"
wine h3ccmped.exe "$@"