execute the command instead of just printing it

pull/2/head
Zsolt Györffi 2016-05-09 18:26:03 +02:00
rodzic 1e7dca1e8d
commit 82f299a524
1 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -42,9 +42,9 @@ fi
echo "Creating destination volume \"$2\"..."
docker volume create --name $2
echo "Copying data from source volume \"$1\" to destination volume \"$2\"..."
echo docker run --rm \
-i \
-t \
-v $2:/from \
-v $1:/to \
alpine ash -c "cd /to ; cp -a /from/* ."
docker run --rm \
-i \
-t \
-v $2:/from \
-v $1:/to \
alpine ash -c "cd /to ; cp -a /from/* ."