From 0364b59d5b222425faf725ba52aef155e8a9ecc1 Mon Sep 17 00:00:00 2001 From: midipix Date: Apr 19 2016 18:47:55 +0000 Subject: library: helper functions: slbt_copy_file: properly call slbt_output_{mode}. --- diff --git a/src/helper/slbt_copy_file.c b/src/helper/slbt_copy_file.c index a97c35c..158a760 100644 --- a/src/helper/slbt_copy_file.c +++ b/src/helper/slbt_copy_file.c @@ -30,9 +30,16 @@ int slbt_copy_file( /* step output */ if (!(dctx->cctx->drvflags & SLBT_DRIVER_SILENT)) { - if (slbt_output_link(dctx,ectx)) { - ectx->argv = oargv; - return -1; + if (dctx->cctx->mode == SLBT_MODE_LINK) { + if (slbt_output_link(dctx,ectx)) { + ectx->argv = oargv; + return -1; + } + } else { + if (slbt_output_install(dctx,ectx)) { + ectx->argv = oargv; + return -1; + } } }