mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Ensure compiled scripts are updated if the scripts themselves are updated
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -31,6 +31,14 @@ if [[ -n "${clean}" ]]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# Remove compiled LUA scripts if older than the plain ones
|
||||
for scriptname in src/lua/scripts/*.lua; do
|
||||
if [ -f "${scriptname}.hex" ] && [ "${scriptname}.hex" -ot "${scriptname}" ]; then
|
||||
echo "INFO: ${scriptname} is outdated and will be recompiled"
|
||||
rm "${scriptname}.hex"
|
||||
fi
|
||||
done
|
||||
|
||||
# Configure build, pass CMake CACHE entries if present
|
||||
# Wrap multiple options in "" as first argument to ./build.sh:
|
||||
# ./build.sh "-DA=1 -DB=2" install
|
||||
|
||||
Reference in New Issue
Block a user