From 890fafd9af1b4150a11661b80195230ef4bec6e1 Mon Sep 17 00:00:00 2001 From: Sergei Date: Thu, 16 Mar 2017 15:41:46 +0300 Subject: [PATCH] Small code optimization by CT2JAY Small code optimization by CT2JAY --- DMRIDUpdateBM.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/DMRIDUpdateBM.sh b/DMRIDUpdateBM.sh index 9007e41..dfe4e86 100644 --- a/DMRIDUpdateBM.sh +++ b/DMRIDUpdateBM.sh @@ -6,6 +6,7 @@ # # Copyright (C) 2016 by Tony Corbett G0WFV # edit by R2AJV +# edit by CT2JAY # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -91,13 +92,7 @@ then fi # Generate new file -wget http://registry.dstar.su/dmr/DMRIds.php -O DMRIds-temp1.dat -cat DMRIds-temp1.dat | sed -e 's/ /\t\t/g' > DMRIds-temp2.dat -cat DMRIds-temp2.dat | sed -e 's/\t/ /g' > DMRIds-temp3.dat -cat DMRIds-temp3.dat | sed -e 's/ / /g' > DMRIds.dat -rm -f DMRIds-temp1.dat -rm -f DMRIds-temp2.dat -rm -f DMRIds-temp3.dat +curl 'http://registry.dstar.su/dmr/DMRIds.php' 2>/dev/null | sed -e 's/[[:space:]]\+/ /g' > ${DMRIDFILE} # Restart MMDVMHost eval ${RESTARTCOMMAND}