no reason to pass full pathname for tar here

This commit is contained in:
matt debergalis
2011-12-08 14:27:52 -08:00
parent 78cf74b545
commit 1c36361a0b

View File

@@ -50,8 +50,7 @@ updater.get_manifest(function (manifest) {
try { fs.mkdirSync(tmp_dir, 0755); } catch (err) { }
// open pipe to tar
// XXX not always /usr/bin/tar !!!. linux is /bin/tar.
var tar_proc = spawn("/usr/bin/tar", ["-C", tmp_dir, "-xzf", "-"]);
var tar_proc = spawn("tar", ["-C", tmp_dir, "-xzf", "-"]);
// XXX
tar_proc.stderr.setEncoding('utf8');