Explorar o código

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

MechMerlin %!s(int64=6) %!d(string=hai) anos
pai
achega
bef554d18b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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"