From: Antonio Ospite Date: Sat, 9 Jan 2016 11:25:31 +0000 (+0100) Subject: kinect_fetch_fw: declare FIRMWARE_PATH earlier and use it when installing X-Git-Tag: v0.5~10 X-Git-Url: https://git.ao2.it/kinect-audio-setup.git/commitdiff_plain/131a1d01b58211c190658d2c3b70d476c846eabc?ds=inline;hp=1e0dfadc37a5d606164b097fa1a1e89d953cf9e0 kinect_fetch_fw: declare FIRMWARE_PATH earlier and use it when installing This is in preparation for renaming the destination firmware file. --- 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