3
0
Fork 0
forked from mirrors/nixpkgs

wrap-gapps-hook.sh: fix double inclusion guard

The simple "return" would not override the non-zero error code set by the
preceding test command, therefore aborting scripts running with "set -e".
This commit is contained in:
Peter Simons 2016-03-17 20:57:46 +01:00
parent fb1f18b98c
commit af81505c00

View file

@ -11,7 +11,7 @@ envHooks+=(find_gio_modules)
# Note: $gappsWrapperArgs still gets defined even if $dontWrapGApps is set.
wrapGAppsHook() {
# guard against running multiple times (e.g. due to propagation)
[ -z "$wrapGAppsHookHasRun" ] || return
[ -z "$wrapGAppsHookHasRun" ] || return 0
wrapGAppsHookHasRun=1
if [ -n "$GDK_PIXBUF_MODULE_FILE" ]; then