Say "failed", not "succeeded" if extract fails

This commit is contained in:
Pk11 2021-03-13 16:16:33 -06:00
commit 33c4688991
4 changed files with 191 additions and 190 deletions

View file

@ -38,7 +38,8 @@ enum ScriptState {
SYNTAX_ERROR,
COPY_ERROR,
MOVE_ERROR,
DELETE_ERROR
DELETE_ERROR,
EXTRACT_ERROR
};
namespace ScriptUtils {
@ -52,7 +53,7 @@ namespace ScriptUtils {
Result downloadRelease(const std::string &repo, const std::string &file, const std::string &output, bool includePrereleases, const std::string &message, bool isARG = false);
Result downloadFile(const std::string &file, const std::string &output, const std::string &message, bool isARG = false);
void installFile(const std::string &file, bool updatingSelf, const std::string &message, bool isARG = false);
void extractFile(const std::string &file, const std::string &input, const std::string &output, const std::string &message, bool isARG = false);
Result extractFile(const std::string &file, const std::string &input, const std::string &output, const std::string &message, bool isARG = false);
Result runFunctions(nlohmann::json storeJson, int selection, const std::string &entry);
};