summaryrefslogtreecommitdiffstats
path: root/src/macdeployqt/macdeployqt/main.cpp
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@theqtcompany.com>2015-08-11 22:17:07 +0200
committerMorten Johan Sørvig <morten.sorvig@theqtcompany.com>2015-08-13 09:03:51 +0000
commitecaca66217be76f23e80948c042bc1a2ddeed3f8 (patch)
treeaccbfb9fc39b1cde988f4be405d31344f99c8824 /src/macdeployqt/macdeployqt/main.cpp
parent247b9999cd389ae5b11a21b535b1c9ff817dc9c6 (diff)
macdeployqt: correct process return values.
Task-number: QTBUG-9332 Change-Id: I684f640d38326f6607669501e0b20be663692fc3 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
Diffstat (limited to 'src/macdeployqt/macdeployqt/main.cpp')
-rw-r--r--src/macdeployqt/macdeployqt/main.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/macdeployqt/macdeployqt/main.cpp b/src/macdeployqt/macdeployqt/main.cpp
index cf9000c72..80c89799f 100644
--- a/src/macdeployqt/macdeployqt/main.cpp
+++ b/src/macdeployqt/macdeployqt/main.cpp
@@ -64,14 +64,14 @@ int main(int argc, char **argv)
qDebug() << "See the \"Deploying an Application on Qt/Mac\" topic in the";
qDebug() << "documentation for more information about deployment on Mac OS X.";
- return 0;
+ return 1;
}
appBundlePath = QDir::cleanPath(appBundlePath);
if (QDir().exists(appBundlePath) == false) {
qDebug() << "Error: Could not find app bundle" << appBundlePath;
- return 0;
+ return 1;
}
bool plugins = true;
@@ -136,7 +136,7 @@ int main(int argc, char **argv)
}
} else if (argument.startsWith("-")) {
LogError() << "Unknown argument" << argument << "\n";
- return 0;
+ return 1;
}
}
@@ -173,5 +173,7 @@ int main(int argc, char **argv)
LogNormal();
createDiskImage(appBundlePath);
}
+
+ return 0;
}