From: MechMerlin <30334081+mechmerlin@users.noreply.github.com> Date: Wed, 24 Oct 2018 15:57:08 +0000 (-0700) Subject: Bug: Users had to be in the /util directory to run the script (#4228) X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=bef554d18bcb14492e2513b0759407e4b4581c9c;p=qmk_firmware.git Bug: Users had to be in the /util directory to run the script (#4228) --- diff --git a/util/new_keymap.sh b/util/new_keymap.sh index b09f3dd0c..73cc9e8cc 100755 --- a/util/new_keymap.sh +++ b/util/new_keymap.sh @@ -18,7 +18,7 @@ if [ -z "$USERNAME" ]; then exit 1 fi -cd .. +cd "$(dirname "$0")/.." if [ ! -d "keyboards/$KB_PATH" ]; then printf "Error! keyboards/%s does not exist!\n" "$KB_PATH"