summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/pkg b/bin/pkg
index 2d64350..dfc5cd9 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -748,11 +748,12 @@ function pkg_status {
function pkg_refresh {
check_installed $1
global_hook $1 pre-update
- if [[ -r $PDIR/$1/Makefile ]] {
+ if [[ -r $PDIR/$1/Makefile ]] (
+ cd $PDIR/$1
wrap_info $1
info "Cleaning build diroctery\n"
- make -C $PDIR/$1 clean
- }
+ make clean
+ )
global_hook $1 post-update
}