diff --git a/apps/msk.c b/apps/msk.c index a7ae3227..caad4547 100644 --- a/apps/msk.c +++ b/apps/msk.c @@ -301,7 +301,10 @@ static int install_package(char * pkg) { char cmd[1024]; sprintf(cmd, "fetch -o /tmp/msk.file -v %s/%s", msk_remote, source); - system(cmd); + int status; + if ((status = system(cmd))) { + return status; + } hashmap_set(hashmap_get(msk_manifest->sections, pkg), "source", "/tmp/msk.file"); } }