Apply suggestion from @gemini-code-assist[bot]

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
Alexandre
2025-11-29 19:53:05 +01:00
committed by GitHub
parent 14fa5e08c3
commit 277ad61267

View File

@@ -21,7 +21,7 @@ for folder in config db; do
legacy_target="$(readlink -f "$legacy_path" || true)" legacy_target="$(readlink -f "$legacy_path" || true)"
if [ "$legacy_target" != "$target" ] && [ "$(ls -A "$legacy_path")" ]; then if [ "$legacy_target" != "$target" ] && [ "$(ls -A "$legacy_path")" ]; then
# -n prevents clobbering anything already present in /config # -n prevents clobbering anything already present in /config
cp -rn "$legacy_path"/* "$target"/ cp -rn "$legacy_path"/. "$target"/
fi fi
fi fi
done done