From b693c1bf9dd32fa8a2b893aaf53890eb2657768e Mon Sep 17 00:00:00 2001 From: peter galkaev Date: Thu, 21 Sep 2017 15:01:00 +0900 Subject: [PATCH] windows docker fix running command like this will make it work on windows command: bash -c "sed -i 's/\r//g' ./wait-for-it.sh && bash ./wait-for-it.sh -t 120 db:3306 -- npm start" --- wait-for-it.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wait-for-it.sh b/wait-for-it.sh index bbe4043..401a6f1 100755 --- a/wait-for-it.sh +++ b/wait-for-it.sh @@ -118,7 +118,7 @@ do ;; --) shift - CLI=("$@") + CLI="$@" break ;; --help) @@ -171,7 +171,7 @@ if [[ $CLI != "" ]]; then echoerr "$cmdname: strict mode, refusing to execute subprocess" exit $RESULT fi - exec "${CLI[@]}" + exec $CLI else exit $RESULT fi