aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-08-26 15:32:31 -0400
committerDave Reisner <d@falconindy.com>2010-08-26 15:33:04 -0400
commit59009f60c270cd10e158ade495392b7bce89faba (patch)
tree2a11e2a8d5a0e0c30865660c4faafb243fc3643a
parente8c6ff8158871b0c35e4c40c05bbbf069375d98c (diff)
downloadsquashfu-59009f60c270cd10e158ade495392b7bce89faba.tar.gz
action_restore(): break inner for loop when match is found
-rwxr-xr-xsquashfu2
1 files changed, 1 insertions, 1 deletions
diff --git a/squashfu b/squashfu
index 23543c6..e2cd573 100755
--- a/squashfu
+++ b/squashfu
@@ -361,7 +361,7 @@ action_restore () {
for line in "${mapping[@]}"; do
IFS=':' read bin stamp <<< "$line"
for res in "${result[@]}"; do
- [[ $res =~ $BINS_DIR/$bin$1 ]] && printf " %d\t%s\n" $bin "$(date --date="@$stamp")"
+ [[ $res =~ $BINS_DIR/$bin$1 ]] && { printf " %d\t%s\n" $bin "$(date --date="@$stamp")"; break }
done
done