Work even if a local path contains $SERVICE
This commit is contained in:
parent
6759e6a175
commit
6598aabc37
4
abra
4
abra
@ -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`
|
||||||
|
Reference in New Issue
Block a user