diff --git a/source/src/commands/install.cpp b/source/src/commands/install.cpp index da772d5..44b47a6 100644 --- a/source/src/commands/install.cpp +++ b/source/src/commands/install.cpp @@ -310,7 +310,7 @@ complete -F _dropshell_completions ds std::filesystem::remove(exe_path.parent_path() / "dropshell.old"); // execute the new version - execlp("bash", "bash", "-c", (parent_path / "dropshell").c_str(), "install", (char *)nullptr); + execlp("bash", "bash", "-c", (exe_path.parent_path() / "dropshell").string() + "install", (char *)nullptr); error << "Failed to execute new version of dropshell." << std::endl; return -1; }