diff options
author | Dave Reisner <d@falconindy.com> | 2010-08-26 15:32:31 -0400 |
---|---|---|
committer | Dave Reisner <d@falconindy.com> | 2010-08-26 15:33:04 -0400 |
commit | 59009f60c270cd10e158ade495392b7bce89faba (patch) | |
tree | 2a11e2a8d5a0e0c30865660c4faafb243fc3643a | |
parent | e8c6ff8158871b0c35e4c40c05bbbf069375d98c (diff) | |
download | squashfu-59009f60c270cd10e158ade495392b7bce89faba.tar.gz |
action_restore(): break inner for loop when match is found
-rwxr-xr-x | squashfu | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |