kinect_fetch_fw: declare FIRMWARE_PATH earlier and use it when installing
authorAntonio Ospite <ao2@ao2.it>
Sat, 9 Jan 2016 11:25:31 +0000 (12:25 +0100)
committerAntonio Ospite <ao2@ao2.it>
Sat, 9 Jan 2016 13:51:37 +0000 (14:51 +0100)
This is in preparation for renaming the destination firmware file.

kinect_fetch_fw

index 67d4a7d..47f7b44 100755 (executable)
@@ -59,11 +59,10 @@ echo -n "Extracting the UAC firmware..."
 echo " done."
 
 FW_FILE=$(ls UACFirmware.* | cut -d ' ' -f 1)
 echo " done."
 
 FW_FILE=$(ls UACFirmware.* | cut -d ' ' -f 1)
+FIRMWARE_PATH=$FW_DESTDIR/$(basename "$FW_FILE")
 
 install -d "$FW_DESTDIR"
 
 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
 
 if [ -f "/lib/udev/rules.d/55-kinect_audio.rules" ];
 then