Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix wrong dd block size notation for OS X with OS check

  • Loading branch information...
commit f20bb4c3ba495501dfdab846a6b5a20ee0a32166 1 parent 8a1c920
@tech2077 authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 raspiwrite.py
View
5 raspiwrite.py
@@ -172,7 +172,10 @@ class transferInBackground (threading.Thread): #Runs the dd command in a thread
def run ( self ):
global SDsnip
global path
- copyString = 'dd bs=1M if=%s of=%s' % (path,SDsnip)
+ if OS[0] != 'Darwin':
+ copyString = 'dd bs=1M if=%s of=%s' % (path,SDsnip)
+ else
+ copyString = 'dd bs=1m if=%s of=%s' % (path,SDsnip)
print 'Running ' + copyString + '...'
print getoutput(copyString)
Please sign in to comment.
Something went wrong with that request. Please try again.