Fixed regex.
This commit is contained in:
parent
46d56223ae
commit
354f9cabaa
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ restore() {
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
local volumes
|
local volumes
|
||||||
volumes="$(docker volume ls | tail -n+2 | egrep -v '[a-z]+\s+[0-9a-f]+' | egrep -o '\s.+$' | sed 's/\s//g')"
|
volumes="$(docker volume ls | tail -n+2 | egrep -v '[a-z]+\s+[0-9a-f]+$' | egrep -o '\s.+$' | sed 's/\s//g')"
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
echo "$line -> $line.tar"
|
echo "$line -> $line.tar"
|
||||||
backup "$line" "$line.tar"
|
backup "$line" "$line.tar"
|
||||||
|
|
Loading…
Reference in a new issue