From 59e81a330519e496cb1e222b6c976a87795665af Mon Sep 17 00:00:00 2001 From: Jesus Alvarez Date: Sat, 7 Jun 2014 10:40:54 -0700 Subject: [PATCH] lib.sh: Fix eval $@ in run_cmd() The wrapped commands were not getting properly "unwrapped" when used with strings. This was causing eval "$@" to try to run the first word word in the unescaped string. --- lib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib.sh b/lib.sh index 4362088..d5e7e1b 100644 --- a/lib.sh +++ b/lib.sh @@ -69,8 +69,8 @@ run_cmd() { if [[ $DRY_RUN -eq 1 ]]; then plain "$@" else - plain "Running command: $1" - eval "$@" + plain "Running command: $@" + $@ plain "Command returned: $?" fi }