File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -86,22 +86,23 @@ if [ -n "$haPath" ]; then
86
86
targetYear=$( echo " ${targetVersion} " | cut -d " ." -f 1)
87
87
currentYear=$( echo " ${currentVersion} " | cut -d " ." -f 1)
88
88
89
+ if [ " ${currentVersion} " == " 2023.12.0" ]; then
90
+ rm -R " $haPath /custom_components/hacs"
91
+ rm -f " $haPath /custom_components/hacs.zip"
92
+ error " HACS will not work on version 2023.12.0 of Home Assistant, upgrade to 2023.12.1 (or newer) before re-running this script."
93
+ fi
94
+
89
95
if [ " ${currentYear} " -lt " ${targetYear} " ]; then
90
96
rm -R " $haPath /custom_components/hacs"
91
97
rm -f " $haPath /custom_components/hacs.zip"
92
98
error " Version ${currentVersion} is not new enough, needs at least ${targetVersion} "
93
99
fi
94
100
101
+
95
102
if [ " ${currentYear} " == " ${targetYear} " ]; then
96
103
targetMonth=$( echo " ${targetVersion} " | cut -d " ." -f 2)
97
104
currentMonth=$( echo " ${currentVersion} " | cut -d " ." -f 2)
98
105
99
- if [ " ${currentYear} .${currentMonth} " == " 2023.12" ]; then
100
- rm -R " $haPath /custom_components/hacs"
101
- rm -f " $haPath /custom_components/hacs.zip"
102
- error " HACS will currently not work on ${currentYear} .${currentMonth} versions of Home Assistant, latest known working version is 2023.11.3"
103
- fi
104
-
105
106
if [ " ${currentMonth} " -lt " ${targetMonth} " ]; then
106
107
rm -R " $haPath /custom_components/hacs"
107
108
rm -f " $haPath /custom_components/hacs.zip"
You can’t perform that action at this time.
0 commit comments