Skip to content
This repository was archived by the owner on Jan 17, 2024. It is now read-only.

Commit 1c8ebb2

Browse files
committed
don't mix tabs and spaces in bootstrap.sh
bootstarp.sh is probably something people would look at to learn how to download tigerbeetle, it should be readable.
1 parent 3a5905c commit 1c8ebb2

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed

Diff for: bootstrap.sh

+22-22
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{
88
from_source=""
99
if [ "$1" = "-build" ]; then
10-
from_source="t"
10+
from_source="t"
1111
fi
1212

1313
set -e
@@ -20,28 +20,28 @@
2020
os="$(uname)"
2121
arch="$(uname -m)"
2222
if [ "$from_source" = "" ]; then
23-
echo "Downloading pre-built TigerBeetle binary for your machine."
24-
echo ""
25-
26-
if [ "$os" = "Darwin" ]; then
27-
arch="universal"
28-
os="macos"
29-
elif [ "$os" = "Linux" ]; then
30-
os="linux"
31-
else
32-
echo "Unsupported OS."
33-
exit 1
34-
fi
35-
36-
curl -sLO "https://github.com/tigerbeetle/tigerbeetle/releases/download/$version/tigerbeetle-$arch-$os.zip"
37-
unzip -qo "tigerbeetle-$arch-$os.zip"
38-
chmod +x tigerbeetle
23+
echo "Downloading pre-built TigerBeetle binary for your machine."
24+
echo ""
25+
26+
if [ "$os" = "Darwin" ]; then
27+
arch="universal"
28+
os="macos"
29+
elif [ "$os" = "Linux" ]; then
30+
os="linux"
31+
else
32+
echo "Unsupported OS."
33+
exit 1
34+
fi
35+
36+
curl -sLO "https://github.com/tigerbeetle/tigerbeetle/releases/download/$version/tigerbeetle-$arch-$os.zip"
37+
unzip -qo "tigerbeetle-$arch-$os.zip"
38+
chmod +x tigerbeetle
3939
else
40-
echo "Building TigerBeetle binary from source for your machine."
41-
echo ""
42-
43-
git checkout "$version"
44-
./scripts/install.sh
40+
echo "Building TigerBeetle binary from source for your machine."
41+
echo ""
42+
43+
git checkout "$version"
44+
./scripts/install.sh
4545
fi
4646

4747
echo "Successfully set up $(./tigerbeetle version) at $(pwd)/tigerbeetle.

Diff for: build.zig

+2-3
Original file line numberDiff line numberDiff line change
@@ -1287,9 +1287,8 @@ const ShellcheckStep = struct {
12871287
.extension = ".sh",
12881288
});
12891289

1290-
try shell.exec("shellcheck {scripts}", .{
1291-
.scripts = scripts,
1292-
});
1290+
try shell.exec("shellcheck {scripts}", .{ .scripts = scripts });
1291+
try shell.exec("shellcheck ./bootstrap.sh", .{});
12931292
}
12941293
};
12951294

0 commit comments

Comments
 (0)