Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-ximage-writer-mac2
1 files changed, 2 insertions, 0 deletions
diff --git a/image-writer-mac b/image-writer-mac
index f3f7bfb..23a8322 100755
--- a/image-writer-mac
+++ b/image-writer-mac
@@ -152,6 +152,8 @@ diskutil_name_cache = {}
def diskutil_name(disk):
if disk not in diskutil_name_cache:
name = diskutil_info(disk)['Volume Name']
+ if name.startswith("Not applicable"):
+ name = ""
if name == "":
for line in diskutil("list", disk):
try: