Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
When executing lua scripts return the value actually returned by the script itself
Baptiste Daroussin committed 5 years ago
commit ed57e13d7030a9eb497a0082159080d496a12abd
parent 0843252
1 file changed +5 -0
modified libpkg/lua_scripts.c
@@ -147,6 +147,11 @@ pkg_lua_script_run(struct pkg * const pkg, pkg_lua_script type, bool upgrade)
				exit(1);
			}

+
			if (lua_tonumber(L, -1) != 0) {
+
				lua_close(L);
+
				exit(1);
+
			}
+

			lua_close(L);
			exit(0);
		} else if (pid < 0) {