Skip to content

Commit 6800215

Browse files
committed
runtime_shell: Apply coderabit fixes
Signed-off-by: jmccormick7 <jcm258@case.edu>
1 parent 74c83d1 commit 6800215

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/runtime_shell/go_plugins/build_test_plugins.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ install_go_if_needed() {
4545
tar -xzf "$GO_TARBALL"
4646

4747
if [ -w "/usr/local" ]; then
48-
sudo rm -rf /usr/local/go
48+
if [ -d /usr/local/go ]; then
49+
sudo rm -rf /usr/local/go
50+
fi
4951
sudo mv go /usr/local/go
5052
export PATH="/usr/local/go/bin:$PATH"
5153
else

0 commit comments

Comments
 (0)