From 4e9d69cbde2a4d9515f859eeece361c2b6d38d33 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 11 Sep 2019 16:01:16 +0200 Subject: [run-virt] Fix execution of *.inc hooks --- .../openslx/vmchooser/run-virt-includes/vmchooser_runvirt_functions.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/modules/run-virt/data/opt/openslx/vmchooser') diff --git a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/vmchooser_runvirt_functions.inc b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/vmchooser_runvirt_functions.inc index a40069d2..7a469e42 100644 --- a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/vmchooser_runvirt_functions.inc +++ b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/vmchooser_runvirt_functions.inc @@ -248,7 +248,7 @@ run_hooks() { export TMPDIR IMGUUID USER "$file" "$@" r="$?" - elif [ "${file##.*}" = "inc" ]; then + elif [ "${file##*.}" = "inc" ]; then . "$file" r="$?" fi -- cgit v1.2.3-55-g7522