summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-08-10 13:20:44 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-08-10 13:20:44 +0200
commit48cc0beb2a72ed96de6056cbeae3ac53b289b124 (patch)
treef7a7c2be56dbac0a6d70827f83aecbd280c219ce
parent1e822e278e71d7e3dd275cc873e93681108097e4 (diff)
bin/pkg: Execute prereqs/hooks in subshells
-rwxr-xr-xbin/pkg4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/pkg b/bin/pkg
index 43e0896..31fe509 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -263,7 +263,7 @@ exec_hook () {
if [[ -r $PDIR/$package/hooks/$hook ]] {
info "Executing $package $hook hook\n"
cd $PDIR/$package
- source hooks/$hook
+ (source hooks/$hook)
}
}
@@ -287,7 +287,7 @@ check_prereqs () {
install+=$1
}
- source prereqs
+ (source prereqs)
if [[ -n $install ]] {
info "$1 requires the following packages: $install\n"