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:
Alexandre
2025-11-24 12:34:18 +01:00
committed by GitHub
parent 4b501845c5
commit 5ab8baadf1

View File

@@ -97,6 +97,7 @@ sed -i '/^$/d' /tempenv
# Exit if empty
if [ ! -s /tempenv ]; then
rm /tempenv
mv "$CONFIGSOURCE" "$CONFIGSOURCE".old
exit 0
fi