Skip to content

Commit dcd114f

Browse files
committed
Revert "rpi-eeprom-update: Surround [:print:] with quotes"
This reverts commit f14fc0f.
1 parent 6265c77 commit dcd114f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rpi-eeprom-update

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ getBootloaderConfig() {
111111
local blconfig_nvmem_path=""
112112

113113
if [ -f "${blconfig_alias}" ]; then
114-
local blconfig_ofnode_path="/sys/firmware/devicetree/base"$(tr -cd '[:print:]' < "${blconfig_alias}")""
114+
local blconfig_ofnode_path="/sys/firmware/devicetree/base"$(tr -cd [:print:] < "${blconfig_alias}")""
115115
local blconfig_ofnode_link=$(find -L /sys/bus/nvmem -samefile "${blconfig_ofnode_path}" 2>/dev/null)
116116

117117
if [ -e "${blconfig_ofnode_link}" ]; then
@@ -286,7 +286,7 @@ getBootloaderUpdateVersion() {
286286
match=".*/pieeprom-[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9].bin"
287287
latest="$(find "${FIRMWARE_IMAGE_DIR}/" -maxdepth 1 -type f -size "${EEPROM_SIZE}c" -regex "${match}" | sort -r | head -n1)"
288288
if [ -f "${latest}" ]; then
289-
BOOTLOADER_UPDATE_VERSION=$(tr -c '[:print:]' "\n" < "${latest}" | sed '/^BUILD_TIMESTAMP=/s/.*=//p;d')
289+
BOOTLOADER_UPDATE_VERSION=$(tr -c [:print:] "\n" < "${latest}" | sed '/^BUILD_TIMESTAMP=/s/.*=//p;d')
290290
BOOTLOADER_UPDATE_IMAGE="${latest}"
291291
fi
292292
}

0 commit comments

Comments
 (0)