]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Bug: Users had to be in the /util directory to run the script (#4228)
authorMechMerlin <30334081+mechmerlin@users.noreply.github.com>
Wed, 24 Oct 2018 15:57:08 +0000 (08:57 -0700)
committerDrashna Jaelre <drashna@live.com>
Wed, 24 Oct 2018 15:57:08 +0000 (08:57 -0700)
util/new_keymap.sh

index b09f3dd0ca20c34c2499cd654866ec4f424b2048..73cc9e8cc3c7e489220faada6b4451ca57152477 100755 (executable)
@@ -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"