~ruther/qmk_firmware

817fcfdc9a146f949e1edeba088866eff8cbcde2 — Eric S. Raymond 4 years ago ed84a4e
Fix shell port bug in computation of QMK_FIRMWARE_DIR (#13950)

Previous code would fail if cd echoes the tathet directory to stdout,
which is pretty common.  Redirecting its output to /dev/null
solves the problem.
1 files changed, 1 insertions(+), 1 deletions(-)

M util/qmk_install.sh
M util/qmk_install.sh => util/qmk_install.sh +1 -1
@@ 1,6 1,6 @@
#!/usr/bin/env bash

QMK_FIRMWARE_DIR=$(cd -P -- "$(dirname -- "$0")/.." && pwd -P)
QMK_FIRMWARE_DIR=$(cd -P -- "$(dirname -- "$0")/.." >/dev/null && pwd -P)
QMK_FIRMWARE_UTIL_DIR=$QMK_FIRMWARE_DIR/util
if [ "$1" = "-y" ]; then
    SKIP_PROMPT='-y'