Permalink
Browse files

Fix wrong dd block size notation for OS X with OS check and add prope…

…r OS X parition name chopping
  • Loading branch information...
1 parent f20bb4c commit f406d657d8998791b444c5542c2f001f4c5e4f3d @tech2077 committed Jul 14, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 raspiwrite.py
View
7 raspiwrite.py
@@ -271,7 +271,12 @@ def transfer(file,archiveType,obtain,SD,URL): #unzips the disk image
if (SD.find("/dev/mmcblk") + 1):
SDsnip = "/dev/mmcblk" + SD[11]
else:
- SDsnip = SD.replace(' ', '')[:-1]
+ if OS[0] != 'Darwin':
+ SDsnip = SD.replace(' ', '')[:-1]
+ else:
+ # remove weird partition notation in OS X partition names
+ SDsnip = SD.replace(' ', '')[:-2]
+
print path
print '\n\n###################################################################'
print 'About to start the transfer procedure, here is your setup:'

0 comments on commit f406d65

Please sign in to comment.