diff --git a/usr/bin/melawy-hooks-runner b/usr/bin/melawy-hooks-runner index ccebe74..50e520f 100755 --- a/usr/bin/melawy-hooks-runner +++ b/usr/bin/melawy-hooks-runner @@ -44,11 +44,11 @@ Os_release() { # add missing ID_LIKE= sed -i $file -e "/^ID=/a \ID_LIKE=${quote}arch${quote}" fi -# if [ -r $melawyfile ] ; then -# # fix BUILD_ID for Melawy Linux -# local buildid="$(grep "^VERSION=" $melawyfile | awk '{print $1}' | cut -d '=' -f 2)" -# sed -i $file -e "s|^BUILD_ID=.*|BUILD_ID=${quote}$buildid${quote}|" -# fi + if [ -r $melawyfile ] ; then + # fix BUILD_ID for Melawy Linux + local buildid="$(grep "^VERSION=" $melawyfile | awk '{print $1}' | cut -d '=' -f 2)" + sed -i $file -e "s|^BUILD_ID=.*|BUILD_ID=${quote}$buildid${quote}|" + fi } Issues() {