From 38124aa387863178c19c684f98ce33728c90cac2 Mon Sep 17 00:00:00 2001 From: Tomasz Finc Date: Mon, 10 Dec 2012 14:18:58 -0800 Subject: [PATCH] Fixing else statement in class transferInBackground and incorrect tab/spaces in transfer() --- raspiwrite.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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###################################################################'