Skip to content

Loading…

Simple syntax issues. #51

Open
wants to merge 2 commits into from

2 participants

@pote

Guys, come on, at least run the script before commiting. :\

@budda

Agreed. Poor show.

@pote

Sorry I was sort of harsh though, the script is good and works, and Im thankful it's published :)

Still, its linked on the raspberry pi elinux wiki, so we should try to make sure master is green, maybe some automated testing and adding it to travis ci? I'll try to find the time to add something like that and send a pull request.

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 7, 2012
  1. @pote
  2. @pote

    And more syntax problems.

    pote committed
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.