From 7c3a70857a7c070c9cba7af8908c9958186a2110 Mon Sep 17 00:00:00 2001 From: Spenser Black Date: Fri, 10 May 2024 12:08:49 -0400 Subject: [PATCH] Allow Linux install script to be run from anywhere --- util/install_linux.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/install_linux.sh b/util/install_linux.sh index b1ece38..c6cf6d4 100755 --- a/util/install_linux.sh +++ b/util/install_linux.sh @@ -1,4 +1,5 @@ #!/bin/bash +UTIL_DIR="$(dirname $0)" # ensure that ~/.local/share/fonts exists mkdir -p ~/.local/share/fonts @@ -8,6 +9,8 @@ rm -rf ~/.local/share/fonts/Monaspace* mkdir -p ~/.local/share/fonts/Monaspace/ +cd "$UTIL_DIR/.." + # copy all fonts from ./otf to ~/.local/share/fonts cp ./fonts/otf/* ~/.local/share/fonts/Monaspace/