Skip to content

Commit 6c97bbc

Browse files
committed
fix: Use bash
1 parent a75c306 commit 6c97bbc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
rm -rf ./_site
44
mkdir -p ./_site
@@ -11,14 +11,14 @@ for file in ./_site/assets/styles/*.css; do
1111
esbuild --minify $file >$dest &
1212
done
1313

14-
function get_checksum {
14+
get_checksum() {
1515
file=$1
1616
sha256sum $file | cut -d ' ' -f1
1717
}
1818

1919
input='{}'
2020

21-
function set_checksum {
21+
set_checksum() {
2222
name=$1
2323
file=$2
2424
echo $input | jq -M ".checksums.$1 |= \"$(get_checksum $2)\""

0 commit comments

Comments
 (0)