Commit cf190570 by Dane Springmeyer

always untar and return a proper error code

parent 2dca7daf
...@@ -2,7 +2,8 @@ import sys ...@@ -2,7 +2,8 @@ import sys
import tarfile import tarfile
import os import os
tarball = sys.argv[1] tarball = os.path.abspath(sys.argv[1])
dirname = os.path.dirname(tarball)
if not os.path.exists(tarball.replace('.tar.gz','')): tfile = tarfile.open(tarball,'r:gz');
tarfile.open().extractall('.') tfile.extractall(dirname)
\ No newline at end of file sys.exit(0)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment