Skip to content

Commit

Permalink
Fixing small issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylo2allen committed Aug 12, 2022
1 parent 361957c commit d7d8c33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Binary file modified bin/shortsync
Binary file not shown.
10 changes: 5 additions & 5 deletions shortsync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,12 @@ int main(int argc, char **argv) {

std::ofstream shortcutfile;
if (writetofile) {
std::ofstream shortcutfile;
shortcutfile.open(outputpath);
if (!shortcutfile.is_open() && writetofile) {
std::cout << "Error while loading " << app->first
<< " outputpath field, an invalid path was loaded.";
return 0;
}
}

std::ifstream iConfig;
Expand Down Expand Up @@ -202,10 +206,6 @@ int main(int argc, char **argv) {
std::cout << "Error while loading " << app->first
<< " config, an invalid path was loaded.";
return 0;
} else if (!shortcutfile.is_open() && writetofile) {
std::cout << "Error while loading " << app->first
<< " outputpath field, an invalid path was loaded.";
return 0;
}

if (printstdout && !writetofile) {
Expand Down

0 comments on commit d7d8c33

Please sign in to comment.