mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
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:
@@ -21,7 +21,7 @@ for folder in config db; do
|
||||
legacy_target="$(readlink -f "$legacy_path" || true)"
|
||||
if [ "$legacy_target" != "$target" ] && [ "$(ls -A "$legacy_path")" ]; then
|
||||
# -n prevents clobbering anything already present in /config
|
||||
cp -rn "$legacy_path"/* "$target"/
|
||||
cp -rn "$legacy_path"/. "$target"/
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user