make sure there's only one container #4
@ -41,6 +41,13 @@ run_docker_cp() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
NEWL=$(echo "$CONTAINER" | grep -c '$')
|
||||||
|
if [[ $NEWL != 1 ]]; then
|
||||||
|
echo "There are $NEWL containers running with the name $PLUGIN_SERVICE. I don't know which one should i copy your files to. Check your containers and stop the unnecessary ones, then restart this script."
|
||||||
|
echo -e "Containers digests: \n$CONTAINER"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
CD=""
|
CD=""
|
||||||
if [ -n "$PLUGIN_CHDIR" ]; then
|
if [ -n "$PLUGIN_CHDIR" ]; then
|
||||||
CD="-C $PLUGIN_CHDIR"
|
CD="-C $PLUGIN_CHDIR"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user