From d2f570b4ef5c551038e81ef50fdfcea0b6d35967 Mon Sep 17 00:00:00 2001 From: Daniel de Cloet Date: Tue, 17 May 2022 13:39:59 +0200 Subject: [PATCH] Quote all variables where needed --- templates/zshrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/zshrc b/templates/zshrc index 5f36bf2..8301c1e 100644 --- a/templates/zshrc +++ b/templates/zshrc @@ -228,18 +228,18 @@ EOS if [ ! -z "$port" ] then - run_command+=" -p $port" + run_command+=" -p \"$port\"" fi for volume in $volumes do - run_command+=" -v $volume" + run_command+=" -v \"$volume\"" done for envvar in $envvars do run_command+=" -e \"$envvar\"" done - run_command+=" -w \"$workdir\" $image $cmd" + run_command+=" -w \"$workdir\" \"$image\" $cmd" eval $run_command }