diff options
author | V.Krishn <vkrishn4@gmail.com> | 2019-02-05 16:18:43 +0530 |
---|---|---|
committer | V.Krishn <vkrishn4@gmail.com> | 2019-02-05 16:18:43 +0530 |
commit | 39270996ed5af00342f50bf73fa9b6ebeeb9c4ec (patch) | |
tree | 9059ccf568ca1f942eab42348a19f5e642f5fde9 /alpine | |
parent | a157aede3d3a3636ff5f8e5bdf0d7e3fc0bb9d06 (diff) | |
download | scripts-39270996ed5af00342f50bf73fa9b6ebeeb9c4ec.tar.bz2 |
code clean
Diffstat (limited to 'alpine')
-rw-r--r-- | alpine/irc/log/get-irclog.sh | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/alpine/irc/log/get-irclog.sh b/alpine/irc/log/get-irclog.sh index 486de6d..2f75f88 100644 --- a/alpine/irc/log/get-irclog.sh +++ b/alpine/irc/log/get-irclog.sh @@ -13,7 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # -# @category sh, sed, awk +# @category sh, sed, awk, grep # @author V.Krishn <vkrishn4@gmail.com> # @copyright Copyright (c) 2019 V.Krishn <vkrishn4@gmail.com> # @license GPL @@ -109,17 +109,15 @@ al_get_irclog() { _CURRLF="#alpine-$log-$MONTHLY.log" if [ -f ${_CURRLF} ]; then al_irclog2html ${_CURRLF} ${_tmpf} + else + continue fi done; } al_irclog2html() { - _CURRLF="#alpine-$log-$MONTHLY.log" - if [ -f ${_CURRLF} ]; then - cp ${_CURRLF} ${_tmpf}; else continue - fi - + rm -f ${_tmpf}; cp ${_CURRLF} ${_tmpf}; num=0; lnames=$(awk '{print $3}' ${_CURRLF} | sort | uniq ) for name in ${lnames}; do |