fix: improve update_script function by enhancing structure and readability
This commit is contained in:
@@ -52,12 +52,10 @@ function update_script() {
|
||||
$STD go build -o /usr/local/bin/localagi || {
|
||||
msg_error "Failed to build LocalAGI from source"
|
||||
exit 1
|
||||
fi
|
||||
systemctl enable -q --now localagi
|
||||
exit
|
||||
}
|
||||
|
||||
systemctl enable -q --now localagi
|
||||
|
||||
fi
|
||||
exit
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user