From 6f2e556112e8519c669e56c32bc7a94298478723 Mon Sep 17 00:00:00 2001 From: Adam Outler Date: Sun, 19 Oct 2025 12:18:16 -0400 Subject: [PATCH] Remove duplicate file replacement logic in update_vendors.sh Dang it coderabbit. We expect more of your diffs. --- .../services/scripts/update_vendors.sh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/install/production-filesystem/services/scripts/update_vendors.sh b/install/production-filesystem/services/scripts/update_vendors.sh index 31ca89df..61e7f6ac 100755 --- a/install/production-filesystem/services/scripts/update_vendors.sh +++ b/install/production-filesystem/services/scripts/update_vendors.sh @@ -18,9 +18,6 @@ set -euo pipefail TEMP_FILE="/services/run/tmp/ieee-oui.txt.tmp" OUTPUT_FILE="/services/run/tmp/ieee-oui.txt" -TEMP_FILE="/services/run/tmp/ieee-oui.txt.tmp" -OUTPUT_FILE="/services/run/tmp/ieee-oui.txt" - # Download the file using wget to stdout and process it if ! wget --timeout=30 --tries=3 "https://standards-oui.ieee.org/oui/oui.txt" -O /dev/stdout | \ sed -E 's/ *\(base 16\)//' | \ @@ -45,7 +42,3 @@ fi # Atomic replacement mv "${TEMP_FILE}" "${OUTPUT_FILE}" echo "Successfully updated IEEE OUI database ($(wc -l < "${OUTPUT_FILE}") entries)" -# Atomic replacement -mv "${TEMP_FILE}" "${OUTPUT_FILE}" -echo "Successfully updated IEEE OUI database ($(wc -l < "${OUTPUT_FILE}") entries)" -