mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Minor refactor of build_frontend script to support linux, and not just mac
This commit is contained in:
parent
c224b91945
commit
98a5542cee
@ -24,4 +24,10 @@ mv polymer/bower_components/polymer/polymer.html.bak polymer/bower_components/po
|
|||||||
# Generate the MD5 hash of the new frontend
|
# Generate the MD5 hash of the new frontend
|
||||||
cd ..
|
cd ..
|
||||||
echo '""" DO NOT MODIFY. Auto-generated by build_frontend script """' > frontend.py
|
echo '""" DO NOT MODIFY. Auto-generated by build_frontend script """' > frontend.py
|
||||||
|
if [ $(command -v md5) ]; then
|
||||||
echo 'VERSION = "'`md5 -q www_static/frontend.html`'"' >> frontend.py
|
echo 'VERSION = "'`md5 -q www_static/frontend.html`'"' >> frontend.py
|
||||||
|
elif [ $(command -v md5sum) ]; then
|
||||||
|
echo 'VERSION = "'`md5sum www_static/frontend.html | cut -c-32`'"' >> frontend.py
|
||||||
|
else
|
||||||
|
echo 'Could not find a MD5 utility'
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user