diff --git a/raspiwrite.py b/raspiwrite.py index 054f93a..dafb762 100755 --- a/raspiwrite.py +++ b/raspiwrite.py @@ -272,10 +272,10 @@ def transfer(file,archiveType,obtain,SD,URL): #unzips the disk image SDsnip = "/dev/mmcblk" + SD[11] else: if OS[0] != 'Darwin': - SDsnip = SD.replace(' ', '')[:-1] - else: - # remove weird partition notation in OS X partition names - SDsnip = SD.replace(' ', '')[:-2] + SDsnip = SD.replace(' ', '')[:-1] + else: + # remove weird partition notation in OS X partition names + SDsnip = SD.replace(' ', '')[:-2] print path print '\n\n###################################################################'