From 6598aabc379da315b7a2b0c8499050a39c823f90 Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Thu, 1 Oct 2020 01:08:09 +0200 Subject: [PATCH] Work even if a local path contains $SERVICE --- abra | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/abra b/abra index 79c3455..80044ba 100755 --- a/abra +++ b/abra @@ -372,10 +372,10 @@ sub_cp() { exit fi - CP_ARGS=$(echo "$SOURCE $DEST" | sed "s/$SERVICE/$CONTAINER/") + CP_ARGS=$(echo "$SOURCE $DEST" | sed "s/$SERVICE:/$CONTAINER:/") # shellcheck disable=SC2086 - docker cp $CP_ARGS + docker cp ${CP_ARGS} } ###### Subcommand `context`