aboutsummaryrefslogtreecommitdiff
path: root/src/is_updated.cc
diff options
context:
space:
mode:
authordacctal <dacctalyt@gmail.com>2026-04-17 08:16:21 +0000
committerdacctal <dacctalyt@gmail.com>2026-04-17 08:16:21 +0000
commitc421fe8fb87e949bae1860f0d501cf8e89ce0f18 (patch)
tree7b2ec26ec674bf864feb80a38aa9b33c7401e479 /src/is_updated.cc
parent574708a5f97907c4b4e67788d38f89fac0981b70 (diff)
started manifest template
Diffstat (limited to 'src/is_updated.cc')
-rw-r--r--src/is_updated.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/is_updated.cc b/src/is_updated.cc
index f166dd8..b2c3b43 100644
--- a/src/is_updated.cc
+++ b/src/is_updated.cc
@@ -5,6 +5,7 @@
bool is_updated(std::string src) {
if (src != std::filesystem::current_path().string()) {
+ if (!std::filesystem::exists(src)) { return false; }
std::filesystem::current_path(src);
}
if (cmd_out("git pull") == "Already up to date.") { return true; }