aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/um/service/utils/install_service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'um/service/utils/install_service.cpp')
-rw-r--r--um/service/utils/install_service.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/um/service/utils/install_service.cpp b/um/service/utils/install_service.cpp
index c452e0d..5af98ef 100644
--- a/um/service/utils/install_service.cpp
+++ b/um/service/utils/install_service.cpp
@@ -8,20 +8,15 @@
#include <exception>
#include <iostream>
-int main(int argc, char* argv[])
-{
- if (argc != 3)
- {
+int main(int argc, char* argv[]) {
+ if (argc != 3) {
std::cout << "Usage: " << argv[0] << " NAME SYS_PATH\n";
return 1;
}
- try
- {
+ try {
service::Service::install(service::ServiceManager::open(), argv[1], argv[2]);
- }
- catch (const std::exception& e)
- {
+ } catch (const std::exception& e) {
std::cerr << e.what() << "\n";
return 1;
}