aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rwxr-xr-xutil/new_keymap.sh2
1 files changed, 1 insertions, 1 deletions
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"