diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-04-22 22:28:58 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-04-22 22:29:06 +0200 |
commit | 6d5115c0c1c1e9293d589e25cdde82f0157a81f0 (patch) | |
tree | 34b919442fef9399de5884dcf6afbf4d3d0d5c27 | |
parent | 6e0046b7830f95a52a551c846d8c76880a3872f9 (diff) | |
download | mkinitcpio-6d5115c0c1c1e9293d589e25cdde82f0157a81f0.tar.gz mkinitcpio-6d5115c0c1c1e9293d589e25cdde82f0157a81f0.tar.xz |
functions: add missing local for iterator
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rw-r--r-- | functions | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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" |