summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/source.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/source.c b/src/source.c
index 94e5146..bbc608d 100644
--- a/src/source.c
+++ b/src/source.c
@@ -728,7 +728,9 @@ bool slapt_src_build_slackbuild(slapt_src_config *config, slapt_src_slackbuild *
exit(EXIT_FAILURE);
}
+ setenv("VERSION", sb->version, 1);
r = system(command);
+ unsetenv("VERSION");
if (r != 0) {
printf("%s %s\n", command, gettext("Failed\n"));
exit(EXIT_FAILURE);