diff --git a/src/linuxdeploy.cpp b/src/linuxdeploy.cpp index 15b13e3..f0b7bba 100644 --- a/src/linuxdeploy.cpp +++ b/src/linuxdeploy.cpp @@ -61,19 +61,20 @@ namespace linuxdeploy { << desktopFile.path() << std::endl; } - ldLog() << "Deploying desktop file:" << desktopFile.path() << std::endl; + } - bool rv; + ldLog() << "Deploying desktop file:" << desktopFile.path() << std::endl; - if (!customAppRunPath.empty()) { - rv = appDir.createLinksInAppDirRoot(desktopFile, customAppRunPath); - } else { - rv = appDir.createLinksInAppDirRoot(desktopFile); - } + bool rv; - if (!rv) { - return 1; - } + if (!customAppRunPath.empty()) { + rv = appDir.createLinksInAppDirRoot(desktopFile, customAppRunPath); + } else { + rv = appDir.createLinksInAppDirRoot(desktopFile); + } + + if (!rv) { + return 1; } } return true;