Work even if a local path contains $SERVICE

This commit is contained in:
3wc 2020-10-01 01:08:09 +02:00
parent 6759e6a175
commit 6598aabc37

4
abra
View File

@ -372,10 +372,10 @@ sub_cp() {
exit exit
fi fi
CP_ARGS=$(echo "$SOURCE $DEST" | sed "s/$SERVICE/$CONTAINER/") CP_ARGS=$(echo "$SOURCE $DEST" | sed "s/$SERVICE:/$CONTAINER:/")
# shellcheck disable=SC2086 # shellcheck disable=SC2086
docker cp $CP_ARGS docker cp ${CP_ARGS}
} }
###### Subcommand `context` ###### Subcommand `context`