diff options
Diffstat (limited to 'tools/XBMCLive')
-rwxr-xr-x | tools/XBMCLive/installXBMC | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/XBMCLive/installXBMC b/tools/XBMCLive/installXBMC index cd6dd10309..b4955552df 100755 --- a/tools/XBMCLive/installXBMC +++ b/tools/XBMCLive/installXBMC @@ -46,7 +46,7 @@ def runSilent(aCmdline): return stdout_value, retCode def diskSizeKB(aVolume): - diskusage, retCode = runSilent('fdisk -l ' + aVolume + ' | grep "Disk ' + aVolume + '" | cut -f 5 -d " "') + diskusage, retCode = runSilent('fdisk -l ' + aVolume + ' | grep "' + aVolume + ':" | cut -f 5 -d " "') nBytes = int(diskusage) return int(nBytes / 1024) @@ -751,7 +751,7 @@ def main(): cmdLine = 'file -b ' + cmdLineOptions.isoFileName aType, retCode = runSilent(cmdLine) - if not aType.find("9660") >0: + if not aType.find("9660") >=0: print "File: " + cmdLineOptions.isoFileName + " is not a valid ISO image, exiting..." sys.exit(-1) |