Skip to content

Commit 0c28968

Browse files
authored
Merge pull request #646 from 417-72KI/fix-installation-in-linux
2 parents b721569 + 342c28f commit 0c28968

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Scripts/install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
2020
else
2121
BUILD_FOLDER=".build/debug"
2222
swift build --disable-sandbox
23-
MAJOR_VERSION=$(swift --version | awk '{for(i=1;i<=NF;i++){if($i ~ /^[0-9]+\.[0-9]+$/){print $i; break}}}' | cut -d '.' -f 1)
23+
MAJOR_VERSION=$(swift --version | awk '{for(i=1;i<=NF;i++){if($i ~ /^[0-9]+\.[0-9]+(\.[0-9]+)?$/){print $i; break}}}' | cut -d '.' -f 1)
2424
fi
2525

2626
mkdir -p "$PREFIX/bin"

0 commit comments

Comments
 (0)