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 || {
|
$STD go build -o /usr/local/bin/localagi || {
|
||||||
msg_error "Failed to build LocalAGI from source"
|
msg_error "Failed to build LocalAGI from source"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
systemctl enable -q --now localagi
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
fi
|
||||||
systemctl enable -q --now localagi
|
|
||||||
|
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user