aboutsummaryrefslogtreecommitdiff
path: root/src/is_updated.cc
diff options
context:
space:
mode:
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; }