mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-04 23:04:09 +02: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)"
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user