summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-04-22 22:28:58 +0200
committerDave Reisner <dreisner@archlinux.org>2012-04-22 22:29:06 +0200
commit6d5115c0c1c1e9293d589e25cdde82f0157a81f0 (patch)
tree34b919442fef9399de5884dcf6afbf4d3d0d5c27 /functions
parent6e0046b7830f95a52a551c846d8c76880a3872f9 (diff)
downloadmkinitcpio-6d5115c0c1c1e9293d589e25cdde82f0157a81f0.tar.gz
mkinitcpio-6d5115c0c1c1e9293d589e25cdde82f0157a81f0.tar.xz
functions: add missing local for iterator
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'functions')
-rw-r--r--functions2
1 files changed, 2 insertions, 0 deletions
diff --git a/functions b/functions
index eebf3a4..e116005 100644
--- a/functions
+++ b/functions
@@ -500,6 +500,8 @@ parse_hook() {
}
find_in_dirs() {
+ local dir
+
for dir in "${@:2}"; do
if [[ -e $dir/$1 ]]; then
printf '%s' "$dir/$1"