diff --git a/install.sh b/install.sh index 8eaa6db..77b5fe1 100755 --- a/install.sh +++ b/install.sh @@ -41,7 +41,9 @@ bat() { if hash bat 2> /dev/null; then echo "Installing Bat configuration..." - ln -sf bat/config `bat --config-file` + CONFIG_FILE=`bat --config-file` + mkdir -p `dirname $CONFIG_FILE` + ln -sf bat/config $CONFIG_FILE fi }