From 0921c32cd12c2710e06f4b70c864d95e6f384bf4 Mon Sep 17 00:00:00 2001 From: Jack Segal Date: Fri, 19 Jan 2018 12:30:28 +0000 Subject: [PATCH] Issue #34 - Fixing regex for getDeviceList Old regex was including other instances with names that include the current instance's name --- gcloud-snapshot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcloud-snapshot.sh b/gcloud-snapshot.sh index a6e7073..c9f9de2 100755 --- a/gcloud-snapshot.sh +++ b/gcloud-snapshot.sh @@ -100,7 +100,7 @@ getInstanceZone() getDeviceList() { - echo "$(gcloud compute disks list --filter users~$1 --format='value(name)')" + echo "$(gcloud compute disks list --filter users~$1\$ --format='value(name)')" }