summaryrefslogtreecommitdiff
path: root/hscript/meta.cc
diff options
context:
space:
mode:
Diffstat (limited to 'hscript/meta.cc')
-rw-r--r--hscript/meta.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/hscript/meta.cc b/hscript/meta.cc
index e419cde..9b0eb83 100644
--- a/hscript/meta.cc
+++ b/hscript/meta.cc
@@ -519,6 +519,8 @@ bool Timezone::execute() const {
std::string target_lt = script->targetDirectory() + "/etc/localtime";
error_code ec;
if(fs::exists(target_zi, ec)) {
+ if(fs::exists(target_lt, ec)) fs::remove(target_lt, ec);
+
fs::create_symlink(zi_path, target_lt, ec);
if(ec) {
output_error("installfile:" + std::to_string(this->lineno()),