diff options
author | lcapriotti <lcapriotti@svn> | 2009-11-24 09:15:14 +0000 |
---|---|---|
committer | lcapriotti <lcapriotti@svn> | 2009-11-24 09:15:14 +0000 |
commit | 75b3ce4b26e00a5bbb7f298c3129f3feae546734 (patch) | |
tree | 0ac4e7c770aea41bf745abaaab8361ce5198649a /tools/XBMCLive | |
parent | 58129931b2389c4854a478a3e1aca7b20faeb44a (diff) |
more compatibility with different and localised (Ubuntu) systems
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@24973 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
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) |