mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
fix: auto-fix linting issues
This commit is contained in:
committed by
github-actions[bot]
parent
e5adbd266f
commit
f728166b14
@@ -14,16 +14,16 @@ chmod -R 755 "$CONFIG_LOCATION"
|
||||
|
||||
#Move files that may be in misspelled directory
|
||||
if [ -d "$OLD_CONFIG_LOCATION" ]; then
|
||||
# Directory Exists
|
||||
if [ -z "$(ls -A "$OLD_CONFIG_LOCATION")" ]; then
|
||||
# Empty
|
||||
rmdir "$OLD_CONFIG_LOCATION"
|
||||
else
|
||||
# Not Empty
|
||||
bashio::log.info "Moving old configuration settings from $OLD_CONFIG_LOCATION to $CONFIG_LOCATION"
|
||||
cp -rnT "$OLD_CONFIG_LOCATION" "$CONFIG_LOCATION/"
|
||||
rm -r "$OLD_CONFIG_LOCATION"
|
||||
fi
|
||||
# Directory Exists
|
||||
if [ -z "$(ls -A "$OLD_CONFIG_LOCATION")" ]; then
|
||||
# Empty
|
||||
rmdir "$OLD_CONFIG_LOCATION"
|
||||
else
|
||||
# Not Empty
|
||||
bashio::log.info "Moving old configuration settings from $OLD_CONFIG_LOCATION to $CONFIG_LOCATION"
|
||||
cp -rnT "$OLD_CONFIG_LOCATION" "$CONFIG_LOCATION/"
|
||||
rm -r "$OLD_CONFIG_LOCATION"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Create files
|
||||
|
||||
Reference in New Issue
Block a user