Skip to content

Commit 8db9e93

Browse files
committed
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.
1 parent 8f8be10 commit 8db9e93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

publish/UnixBuild.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
cargo build --release -p luals
44

55
if [ -d "dist" ]; then
66
rm -rf dist
77
fi
88

9-
mkdir bin
9+
mkdir -p bin
1010

1111
cp target/release/lua-language-server bin/

0 commit comments

Comments
 (0)