Skip to content
Browse files

Fix some indentation and syntax typos that prevented the script from …

…running on OS X
  • Loading branch information...
1 parent 413db87 commit f1c8163e4690a84fc05331cd4c0b709098f48074 @markjaquith committed Dec 5, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 raspiwrite.py
View
12 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]
- else:
- # remove weird partition notation in OS X partition names
- SDsnip = SD.replace(' ', '')[:-2]
+ 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###################################################################'

0 comments on commit f1c8163

Please sign in to comment.
Something went wrong with that request. Please try again.