Parcourir la source

Bug: Users had to be in the /util directory to run the script (#4228)

MechMerlin il y a 6 ans
Parent
commit
bef554d18b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      util/new_keymap.sh

+ 1 - 1
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"