From 131a1d01b58211c190658d2c3b70d476c846eabc Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Sat, 9 Jan 2016 12:25:31 +0100 Subject: [PATCH] kinect_fetch_fw: declare FIRMWARE_PATH earlier and use it when installing This is in preparation for renaming the destination firmware file. --- kinect_fetch_fw | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kinect_fetch_fw b/kinect_fetch_fw index 67d4a7d..47f7b44 100755 --- a/kinect_fetch_fw +++ b/kinect_fetch_fw @@ -59,11 +59,10 @@ echo -n "Extracting the UAC firmware..." echo " done." FW_FILE=$(ls UACFirmware.* | cut -d ' ' -f 1) +FIRMWARE_PATH=$FW_DESTDIR/$(basename "$FW_FILE") install -d "$FW_DESTDIR" -install -m 644 "$FW_FILE" "$FW_DESTDIR" - -FIRMWARE_PATH=$FW_DESTDIR/$(basename "$FW_FILE") +install -m 644 "$FW_FILE" "$FIRMWARE_PATH" if [ -f "/lib/udev/rules.d/55-kinect_audio.rules" ]; then -- 2.1.4