Before

…lines 1–13 unchanged (13 lines)
14
15
16if [ "$arch" != "ppc64le" ]; then
17 apt-get install -y dwz
18 dwz --version
19fi
20
21function getgo {
22 export GOROOT=/usr/local/go/$1
23 if [ ! -d "$GOROOT" ]; then
24 wget -q https://dl.google.com/go/"$1".linux-"${arch}".tar.gz
25 mkdir -p /usr/local/go
26 tar -C /usr/local/go -xzf "$1".linux-"${arch}".tar.gz
…lines 27–90 unchanged (64 lines)

After

…lines 1–14 unchanged (14 lines)
15
16if [ "$arch" != "ppc64le" ]; then
17 apt-get install -y dwz
18 dwz --version
19fi
20
21if [ "$arch" == "riscv64" ]; then
22 apt-get install -y git
23 git --version
24fi
25
26function getgo {
27 export GOROOT=/usr/local/go/$1
28 if [ ! -d "$GOROOT" ]; then
29 wget -q https://dl.google.com/go/"$1".linux-"${arch}".tar.gz
30 mkdir -p /usr/local/go
…lines 31–95 unchanged (65 lines)

Before

program
comment "#!/bin/bash"
command
command_name
word "set"
word "-e"
command
command_name
word "set"
word "-x"
variable_assignment
variable_name "version"
= "="
simple_expansion
$ "$"
variable_name "1"
variable_assignment
variable_name "arch"
= "="
simple_expansion
$ "$"
variable_name "2"
command
command_name
word "apt-get"
word "-qq"
word "update"
if_statement (+40 nodes collapsed)
if_statement (+30 nodes collapsed)
function_definition (+93 nodes collapsed)
if_statement (+217 nodes collapsed)
variable_assignment
variable_name "GOPATH"
= "="
concatenation
command_substitution
$( "$("
command
command_name
word "pwd"
) ")"
word "/go"
declaration_command
export "export"
variable_name "GOPATH"
declaration_command
export "export"
variable_assignment
variable_name "PATH"
= "="
concatenation
simple_expansion
$ "$"
variable_name "PATH"
word ":"
$ "$"
concatenation
word "GOROOT/bin:"
simple_expansion
$ "$"
variable_name "GOPATH"
word "/bin"
command
command_name
word "go"
word "version"
if_statement (+30 nodes collapsed)
command
command_name
word "go"
word "install"
word "github.com/google/capslock/cmd/capslock@latest"
command
command_name
word "uname"
word "-a"
command
command_name
word "echo"
string
" "\""
simple_expansion
$ "$"
variable_name "PATH"
" "\""
command
command_name
word "echo"
string
" "\""
simple_expansion
$ "$"
variable_name "GOROOT"
" "\""
command
command_name
word "echo"
string
" "\""
simple_expansion
$ "$"
variable_name "GOPATH"
" "\""
command
command_name
word "cd"
word "delve"
comment "# Starting with go1.18 'go build' and 'go run' will try to s"...
comment "# with the current VCS revision, which does not work with Te"...
if_statement (+50 nodes collapsed)
if_statement (+56 nodes collapsed)
command
command_name
word "set"
word "+e"
command
command_name
word "go"
word "run"
word "_scripts/make.go"
word "test"
variable_assignment
variable_name "x"
= "="
simple_expansion
$ "$"
special_variable_name "?"
if_statement (+32 nodes collapsed)

After

program
comment "#!/bin/bash"
command
command_name
word "set"
word "-e"
command
command_name
word "set"
word "-x"
variable_assignment
variable_name "version"
= "="
simple_expansion
$ "$"
variable_name "1"
variable_assignment
variable_name "arch"
= "="
simple_expansion
$ "$"
variable_name "2"
command
command_name
word "apt-get"
word "-qq"
word "update"
if_statement (+40 nodes collapsed)
if_statement (+30 nodes collapsed)
if_statement
if "if"
test_command
[ "["
binary_expression
string
" "\""
simple_expansion
$ "$"
variable_name "arch"
" "\""
== "=="
string
" "\""
string_content "riscv64"
" "\""
] "]"
; ";"
then "then"
command
command_name
word "apt-get"
word "install"
word "-y"
word "git"
command
command_name
word "git"
word "--version"
fi "fi"
function_definition (+93 nodes collapsed)
if_statement (+217 nodes collapsed)
variable_assignment
variable_name "GOPATH"
= "="
concatenation
command_substitution
$( "$("
command
command_name
word "pwd"
) ")"
word "/go"
declaration_command
export "export"
variable_name "GOPATH"
declaration_command
export "export"
variable_assignment
variable_name "PATH"
= "="
concatenation
simple_expansion
$ "$"
variable_name "PATH"
word ":"
$ "$"
concatenation
word "GOROOT/bin:"
simple_expansion
$ "$"
variable_name "GOPATH"
word "/bin"
command
command_name
word "go"
word "version"
if_statement (+30 nodes collapsed)
command
command_name
word "go"
word "install"
word "github.com/google/capslock/cmd/capslock@latest"
command
command_name
word "uname"
word "-a"
command
command_name
word "echo"
string
" "\""
simple_expansion
$ "$"
variable_name "PATH"
" "\""
command
command_name
word "echo"
string
" "\""
simple_expansion
$ "$"
variable_name "GOROOT"
" "\""
command
command_name
word "echo"
string
" "\""
simple_expansion
$ "$"
variable_name "GOPATH"
" "\""
command
command_name
word "cd"
word "delve"
comment "# Starting with go1.18 'go build' and 'go run' will try to s"...
comment "# with the current VCS revision, which does not work with Te"...
if_statement (+50 nodes collapsed)
if_statement (+56 nodes collapsed)
command
command_name
word "set"
word "+e"
command
command_name
word "go"
word "run"
word "_scripts/make.go"
word "test"
variable_assignment
variable_name "x"
= "="
simple_expansion
$ "$"
special_variable_name "?"
if_statement (+32 nodes collapsed)