Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

2 Minor fixes #48

Open
wants to merge 1 commit into from

1 participant

@benperiton

Hi,

I had to make a couple of minor fixes to get it to run properly, thought you might like them back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 25, 2012
  1. @benperiton
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 raspiwrite.py
View
6 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 + '...'
@@ -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]
+ 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###################################################################'
Something went wrong with that request. Please try again.