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:
parent
fb1f18b98c
commit
af81505c00
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue