From 9995f9583cbd7a29c932a8605bb085faf5cd29c2 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Thu, 1 Sep 2016 15:44:21 +0400 Subject: [PATCH] runsmod: bug --- lib/ulib/runsmod | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ulib/runsmod b/lib/ulib/runsmod index 05949c1..ee5f1f5 100644 --- a/lib/ulib/runsmod +++ b/lib/ulib/runsmod @@ -221,8 +221,10 @@ function __runsmod_fixinfo() { function runsmod_autoconf() { if __runsmod_loadconf && runsmod_checkenv --check-only; then + local host_mode="${1:-self}"; shift + set -- "$host_mode" "$@" runsmod_setup_vars - runsmod_update_vars "${1:-self}" + runsmod_update_vars "$@" runsmod_teardown_vars if show_debug; then etitle SCRIPTSDIRS array_each SCRIPTSDIRS ppath