From c9d180900a3f8e54b456c9e71bfaac930bbc2478 Mon Sep 17 00:00:00 2001 From: Mike Burns Date: Tue, 6 May 2014 14:00:54 +0200 Subject: Bugfix: do not break out of the for loop A `break` anywhere inside a `for` loop (even inside a `case`) will exit from the innermost loop. Replace the `break` with a `:` to get the desired effect. Spotted by Pat Brisin. --- bin/mkrc.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/mkrc.in b/bin/mkrc.in index e173eae..e8d3864 100755 --- a/bin/mkrc.in +++ b/bin/mkrc.in @@ -79,8 +79,8 @@ fi for file in $files; do case "$file" in - /*) break;; - *) [ -e "$PWD/$file" ] && file="$PWD/$file" + /*) : ;; + *) [ -e "$PWD/$file" ] && file="$PWD/$file" ;; esac dotless="$(de_dot "$file")" dest="$(destination "$DOTFILES_DIR" "$dotless" $in_host "$tag")" -- cgit v1.2.3