diff --git a/raspiwrite.py b/raspiwrite.py index 054f93a..874c18f 100755 --- a/raspiwrite.py +++ b/raspiwrite.py @@ -174,7 +174,7 @@ def run ( self ): global path if OS[0] != 'Darwin': copyString = 'dd bs=1M if=%s of=%s' % (path,SDsnip) - else + else: copyString = 'dd bs=1m if=%s of=%s' % (path,SDsnip) print 'Running ' + copyString + '...' @@ -271,11 +271,11 @@ def transfer(file,archiveType,obtain,SD,URL): #unzips the disk image if (SD.find("/dev/mmcblk") + 1): SDsnip = "/dev/mmcblk" + SD[11] else: - if OS[0] != 'Darwin': - 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] + SDsnip = SD.replace(' ', '')[:-2] print path print '\n\n###################################################################'