From 55ea4b34d798b48ab6a21c9b4943f31f2ba6e3ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Mon, 15 Apr 2013 13:45:41 +0200 Subject: [PATCH] =?UTF-8?q?[ethercode.sh]=20Bugfix=20+=20retrait=20des=20p?= =?UTF-8?q?arenth=C3=A8ses=20useless?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/ethercodes.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/ethercodes.sh b/utils/ethercodes.sh index a5ef2bc4..26b87a9d 100755 --- a/utils/ethercodes.sh +++ b/utils/ethercodes.sh @@ -8,7 +8,7 @@ TEMPFILE=`tempfile` # on évite de casser le dépôt darcs umask 002 wget -o /dev/null -O $TEMPFILE http://standards.ieee.org/regauth/oui/oui.txt \ - && awk -F '[\t ]*(hex)[ \t]*' '(/(hex)/) {gsub("-",":",$1) ; print $1" "$2}' < $TEMPFILE > /usr/scripts/gestion/ethercodes.dat \ + && awk -F '[\t ]*(hex)[ \t]*' '(/(hex)/) {gsub("-",":",$1) ; {gsub("^ *", "", $1)}; {gsub("\\(", "", $1)}; {gsub("\\)", "", $2)}; print $1" "$2}' < $TEMPFILE > /usr/scripts/gestion/ethercodes.dat \ && cd /usr/scripts/gestion \ && git commit --author="Cron Daemon " -m "[ethercodes.dat] Mise à jour du fichier vendeur" ethercodes.dat > /dev/null \ && git push > /dev/null