Skip to content

Commit

Permalink
Merge pull request #179 from yejinze/main
Browse files Browse the repository at this point in the history
fix: directory copy issue
  • Loading branch information
topsworld authored Dec 18, 2024
2 parents d437963 + 6fae26a commit 54e2637
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

1 comment on commit 54e2637

@rm-yd0987654321
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ###

_****_

Please sign in to comment.