mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-09 17:31:03 +01:00
Rename config source file if '/tempenv' is empty
Rename the config source file to include '.old' extension when '/tempenv' is empty.
This commit is contained in:
@@ -97,6 +97,7 @@ sed -i '/^$/d' /tempenv
|
||||
# Exit if empty
|
||||
if [ ! -s /tempenv ]; then
|
||||
rm /tempenv
|
||||
mv "$CONFIGSOURCE" "$CONFIGSOURCE".old
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user