Without this, we hit an infinte loop and crash when a legacy 'install'
function in a hook is encountered.

Thanks-to: Gerardo Exequiel Pozzi <[email protected]>
Signed-off-by: Dave Reisner <[email protected]>
---
 functions |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/functions b/functions
index ee6921c..8e3588a 100644
--- a/functions
+++ b/functions
@@ -221,7 +221,7 @@ _add_file() {
   [[ -e "$BUILDROOT$1" ]] && return $EEXIST
 
   (( QUIET )) || plain "adding file: %s" "$1"
-  install -Dm$3 "$2" "$BUILDROOT$1"
+  command install -Dm$3 "$2" "$BUILDROOT$1"
 }
 
 _add_dir() {
-- 
1.7.5.4

Reply via email to