Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix script execution

  • Loading branch information...
commit 32b5ce80460eb86a5cff8d26f80286655ffd333d 1 parent 4954dfa
@bapt bapt authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  libpkg/scripts.c
View
3  libpkg/scripts.c
@@ -63,7 +63,8 @@ pkg_script_run(struct pkg * const pkg, pkg_script type)
assert(map[i].a == type);
for (i = 0; i < PKG_NUM_SCRIPTS; i++) {
-
+ if (pkg_script_get(pkg, i) == NULL)
+ continue;
if (i == map[i].a || i == map[i].b) {
sbuf_reset(script_cmd);
sbuf_printf(script_cmd, "PKG_PREFIX=%s\nset -- %s-%s",
Please sign in to comment.
Something went wrong with that request. Please try again.