mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
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.
|
# Note: $gappsWrapperArgs still gets defined even if $dontWrapGApps is set.
|
||||||
wrapGAppsHook() {
|
wrapGAppsHook() {
|
||||||
# guard against running multiple times (e.g. due to propagation)
|
# guard against running multiple times (e.g. due to propagation)
|
||||||
[ -z "$wrapGAppsHookHasRun" ] || return
|
[ -z "$wrapGAppsHookHasRun" ] || return 0
|
||||||
wrapGAppsHookHasRun=1
|
wrapGAppsHookHasRun=1
|
||||||
|
|
||||||
if [ -n "$GDK_PIXBUF_MODULE_FILE" ]; then
|
if [ -n "$GDK_PIXBUF_MODULE_FILE" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user