This commit is contained in:
@@ -16,10 +16,6 @@ bool load_config(const std::string& config_path, ServerConfig& config) {
|
|||||||
std::cerr << "Config file does not exist: " << config_path << std::endl;
|
std::cerr << "Config file does not exist: " << config_path << std::endl;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!std::filesystem::is_regular_file(config_path)) {
|
|
||||||
std::cerr << "Config file is not a regular file: " << config_path << std::endl;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::ifstream file(config_path);
|
std::ifstream file(config_path);
|
||||||
if (!file.is_open()) {
|
if (!file.is_open()) {
|
||||||
|
@@ -1,6 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
set -x
|
|
||||||
|
|
||||||
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
MAIN_DIR=$(cd "${SCRIPT_DIR}/.." && pwd)
|
MAIN_DIR=$(cd "${SCRIPT_DIR}/.." && pwd)
|
||||||
|
Reference in New Issue
Block a user