mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2025-04-02 07:45:31 +08:00
fix: directory copy issue
This commit is contained in:
parent
d437963628
commit
6fae26a378
@ -20,8 +20,13 @@ rm -rf "$config_path/custom_components/xiaomi_home"
|
||||
script_path=$(dirname "$0")
|
||||
# Change to the script path.
|
||||
cd "$script_path"
|
||||
|
||||
# Copy the new version.
|
||||
cp -r custom_components/xiaomi_home/ "$config_path/custom_components/"
|
||||
if [ -d "$config_path/custom_components" ]; then
|
||||
cp -r custom_components/xiaomi_home/ "$config_path/custom_components/"
|
||||
else
|
||||
cp -r custom_components/ "$config_path/custom_components/"
|
||||
fi
|
||||
|
||||
# Done.
|
||||
echo "Xiaomi Home installation is completed. Please restart Home Assistant."
|
||||
|
Loading…
x
Reference in New Issue
Block a user