From 2bd560aa7baf32b9bd4e3de9753a029610fda30a Mon Sep 17 00:00:00 2001 From: Dmytro Dovbii Date: Tue, 8 Dec 2015 15:45:37 +0200 Subject: [PATCH] Fix Linux.runCommand method Added `eval` command to execution plan, which allows to correctly execute user input Change-Id: Ie0469a7a464b246dc76acf6259b12eeb9a126563 Closes-Bug: #1523915 --- meta/io.murano/Resources/RunCommand.template | 2 +- meta/io.murano/Resources/scripts/runCommand.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/io.murano/Resources/RunCommand.template b/meta/io.murano/Resources/RunCommand.template index c62597ff..4fa15909 100644 --- a/meta/io.murano/Resources/RunCommand.template +++ b/meta/io.murano/Resources/RunCommand.template @@ -18,7 +18,7 @@ Parameters: command: $command Body: | - return runCommand("'{0}'".format(args.command)) + return runCommand("{0}".format(args.command)) Scripts: runCommand: diff --git a/meta/io.murano/Resources/scripts/runCommand.sh b/meta/io.murano/Resources/scripts/runCommand.sh index 2e07744b..73694b11 100644 --- a/meta/io.murano/Resources/scripts/runCommand.sh +++ b/meta/io.murano/Resources/scripts/runCommand.sh @@ -11,4 +11,4 @@ # License for the specific language governing permissions and limitations # under the License. -$1 \ No newline at end of file +eval ${*} \ No newline at end of file