mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +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
|
# Exit if empty
|
||||||
if [ ! -s /tempenv ]; then
|
if [ ! -s /tempenv ]; then
|
||||||
rm /tempenv
|
rm /tempenv
|
||||||
|
mv "$CONFIGSOURCE" "$CONFIGSOURCE".old
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user