Skip to content

Commit e8848c1

Browse files
committed
templ fix - gomft
1 parent f63a1d8 commit e8848c1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

install/gomft-install.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ curl -fsSL "https://github.com/StarFleetCPTN/GoMFT/archive/refs/tags/v${RELEASE}
3232
tar -xzf "$temp_file"
3333
mv GoMFT-"${RELEASE}"/ /opt/gomft
3434
cd /opt/gomft
35-
$STD go install github.com/a-h/templ/cmd/templ@latest
35+
TEMPL_VERSION="$(awk '/github.com\/a-h\/templ/{print $2}' go.mod)"
36+
$STD go install github.com/a-h/templ/cmd/templ@v${TEMPL_VERSION}
37+
cp /opt/gomft/components/file_metadata/search/file_metadata_search_content.templ{,.bak}
38+
sed -i -e '/<div id="search-results">/a \ @{' \
39+
-e '/^ }$/a \ }' \
40+
/opt/gomft/components/file_metadata/search/file_metadata_search_content.templ
3641
$STD "$HOME"/go/bin/templ generate
3742
$STD go build -o gomft main.go
3843
chmod +x /opt/gomft/gomft

0 commit comments

Comments
 (0)