From 8db9e93c26cbd1eb0d6cf9c81b0908aff98b6563 Mon Sep 17 00:00:00 2001 From: Raphael Ahrens Date: Sun, 23 Mar 2025 10:20:43 +0100 Subject: [PATCH] Fixed build on FreeBSD On FreeBSD and other systems bash is not always in /bin/bash. Further add the `-p` flag to the `mkdir` to not fail if the directory already exists. --- publish/UnixBuild.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/publish/UnixBuild.sh b/publish/UnixBuild.sh index 612315d..aabb745 100644 --- a/publish/UnixBuild.sh +++ b/publish/UnixBuild.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash cargo build --release -p luals @@ -6,6 +6,6 @@ if [ -d "dist" ]; then rm -rf dist fi -mkdir bin +mkdir -p bin cp target/release/lua-language-server bin/