summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Burda <contact@sinitax.com>2025-08-01 22:42:13 +0200
committerLouis Burda <contact@sinitax.com>2025-08-01 22:42:13 +0200
commitc467087d3ccebf722aee499e5d6c6811d6ae9401 (patch)
treeacb62c5623a5bb2c1e74ed9fe3dd830bb0472ee5
parentc1a56185a17ecc8b88ea163e45f47ce9f3bb09f3 (diff)
downloadgit-sync-c467087d3ccebf722aee499e5d6c6811d6ae9401.tar.gz
git-sync-c467087d3ccebf722aee499e5d6c6811d6ae9401.zip
Check for swap file changes in config
-rwxr-xr-xgit-syncd2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-syncd b/git-syncd
index 51b14c8..7d9456e 100755
--- a/git-syncd
+++ b/git-syncd
@@ -122,7 +122,7 @@ while true; do
mod_path="$(realpath "$file" 2>/dev/null)"
config_path="$(realpath "$GIT_SYNCD_CONFIG" 2>/dev/null)"
echo "config $mod_path $config_path"
- if [ "$mod_path" = "$config_path" ]; then
+ if [ "$mod_path" = "$config_path" -o "$mod_path" = "$config_path~" ]; then
kill_watchers
load_config
start_watchers