replaced pipe command with one string (test)
authorft
Fri, 06 Jun 2014 10:47:55 +0200
changeset 10b9b23dd0ba4d
parent 9 d49050cfaab7
child 11 47c25c3d6db2
replaced pipe command with one string (test)
src/encryptionprovider.py
     1.1 --- a/src/encryptionprovider.py	Fri Jun 06 10:06:35 2014 +0200
     1.2 +++ b/src/encryptionprovider.py	Fri Jun 06 10:47:55 2014 +0200
     1.3 @@ -131,7 +131,10 @@
     1.4              sys.exit(1)
     1.5  
     1.6  def isDeviceMountedAtMountpoint (device, mountpoint):
     1.7 -    command = ["/bin/df", mountpoint, "|", "/usr/bin/tail", "-1", "|", "awk", "'{print $1}'"]
     1.8 +    command = ("/bin/df %s | /usr/bin/tail -1 | awk '{print $1}'" %(mountpoint,))
     1.9 +    
    1.10 +    #result = os.popen(command)
    1.11 +    
    1.12      result = runExternalScripts(command)
    1.13      
    1.14      if (result["retcode"] != 0):