fix customScript warning

This commit is contained in:
Andrei Yankovich 2021-06-30 16:43:37 +03:00
parent c47513ecef
commit 0564b5b36c

View File

@ -101,11 +101,6 @@ bool MetaFileManager::createRunScriptLinux(const QString &target) {
QString MetaFileManager::generateCustoScriptBlok(bool bat) const {
QuasarAppUtils::Params::log("The customScript option are depricated!."
" This option will be removed into next release cqtdeployer."
" Please use the runScript option",
QuasarAppUtils::Warning);
QString res = "";
QString commentMarker = "# ";
@ -115,6 +110,12 @@ QString MetaFileManager::generateCustoScriptBlok(bool bat) const {
auto cstSh = QuasarAppUtils::Params::getArg("customScript", "");
if (cstSh.size()) {
QuasarAppUtils::Params::log("The customScript option are depricated!."
" This option will be removed into next release cqtdeployer."
" Please use the runScript option",
QuasarAppUtils::Warning);
res = "\n" +
commentMarker + "Begin Custom Script (generated by customScript flag)\n"
"%0\n" +