diff --git a/apps/msk.c b/apps/msk.c index dcde7b32..b4369c86 100644 --- a/apps/msk.c +++ b/apps/msk.c @@ -361,10 +361,9 @@ static int install_package(char * pkg) { } char cmd[1024]; - sprintf(cmd, "cd %s; ungz %s /tmp/%s.tar; tar -xf /tmp/%s.tar; rm /tmp/%s.tar", + sprintf(cmd, "cd %s; tar -xzf %s", confreader_get(msk_manifest, pkg, "destination"), - confreader_get(msk_manifest, pkg, "source"), - pkg, pkg, pkg); + confreader_get(msk_manifest, pkg, "source")); int status; if ((status = system(cmd))) {