Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Fix program downloading installer even if the installer is found
Browse files Browse the repository at this point in the history
  • Loading branch information
wiggleforlife committed Mar 5, 2022
1 parent 82c7209 commit 165f964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ int install(const char* program, bool forceDownload) {
if (ut.askForConfirmation(programName.c_str())) {
system(("find /tmp/vatsim-manager/" + programName + ".run > /tmp/vatsim-manager/findinstaller 2>&1")
.c_str());
if (!ut.iequals(ut.readFile("/tmp/vatsim-manager/findres"), "/tmp/vatsim-manager/" +
if (!ut.iequals(ut.readFile("/tmp/vatsim-manager/findinstaller"), "/tmp/vatsim-manager/" +
programName + ".run") || forceDownload) {
dl.downloadPilotClient(programIndex);
} else {
Expand Down

0 comments on commit 165f964

Please sign in to comment.