mirror of
https://github.com/hassio-addons/addon-home-panel.git
synced 2025-05-05 03:11:24 +00:00
👕 Codestyling improvements
This commit is contained in:
parent
2c11e64f3a
commit
39ca305850
1 changed files with 5 additions and 3 deletions
|
@ -6,10 +6,12 @@
|
||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
source /usr/lib/hassio-addons/base.sh
|
source /usr/lib/hassio-addons/base.sh
|
||||||
|
|
||||||
|
declare config_file
|
||||||
|
|
||||||
config_file="/config/$(hass.config.get 'config_file')"
|
config_file="/config/$(hass.config.get 'config_file')"
|
||||||
|
|
||||||
if [ ! -f "$config_file" ]; then
|
if ! hass.file_exists "${config_file}"; then
|
||||||
hass.log.info "Config file does not exist. Creating.."
|
hass.log.info "Config file does not exist. Creating.."
|
||||||
cp /etc/home-panel/home-panel-config.default.json "$config_file"
|
cp /etc/home-panel/home-panel-config.default.json "${config_file}"
|
||||||
hass.log.info "Created. You should now edit this file at '$config_file'"
|
hass.log.info "Created. You should now edit this file at '${config_file}'"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue