refactor
Some checks are pending
BlockStorage/repertory/pipeline/head Build queued...

This commit is contained in:
Scott E. Graves 2024-10-24 19:02:11 -05:00
parent 57b007759e
commit 4e8ff7815e

View File

@ -196,12 +196,11 @@ public:
} }
static void execute_unmount() { static void execute_unmount() {
auto unmounted{false};
auto unmount_cmd = "./repertory -dd \"" + config->get_data_directory() + auto unmount_cmd = "./repertory -dd \"" + config->get_data_directory() +
"\"" + " " + utils::string::join(drive_args, ' ') + "\"" + " " + utils::string::join(drive_args, ' ') +
" -unmount"; " -unmount";
auto unmounted{false};
for (int i = 0; not unmounted && (i < 50); i++) { for (int i = 0; not unmounted && (i < 50); i++) {
std::cout << "unmount command: " << unmount_cmd << std::endl; std::cout << "unmount command: " << unmount_cmd << std::endl;
auto res = system(unmount_cmd.c_str()); auto res = system(unmount_cmd.c_str());