POSIX shell does not specify meaning of source operation

Just use '.' operator instead. Oops.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2007-11-18 11:23:10 -06:00
parent b118ce55bd
commit 5f0c241987
1 changed files with 2 additions and 2 deletions

View File

@ -538,10 +538,10 @@ int _alpm_runscriptlet(const char *root, const char *installfn,
_alpm_log(PM_LOG_DEBUG, "executing %s script...\n", script);
if(oldver) {
snprintf(cmdline, PATH_MAX, "source %s %s %s %s",
snprintf(cmdline, PATH_MAX, ". %s %s %s %s",
scriptpath, script, ver, oldver);
} else {
snprintf(cmdline, PATH_MAX, "source %s %s %s",
snprintf(cmdline, PATH_MAX, ". %s %s %s",
scriptpath, script, ver);
}
_alpm_log(PM_LOG_DEBUG, "%s\n", cmdline);