summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-06-27 01:09:24 +0200
committerDave Reisner <dreisner@archlinux.org>2011-06-27 02:21:45 +0200
commit457db1af9f697a6dff4189cb46031688c78a61dc (patch)
tree0ff0fba7769721436b18c053afa65038b12a6959
parent6cdc1a6d080ffb6cca413156d66504cc4034fb1b (diff)
downloadmkinitcpio-457db1af9f697a6dff4189cb46031688c78a61dc.tar.gz
mkinitcpio-457db1af9f697a6dff4189cb46031688c78a61dc.tar.xz
functions: add missing 'command' before install
Without this, we hit an infinte loop and crash when a legacy 'install' function in a hook is encountered. Thanks-to: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rw-r--r--functions2
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() {