refactoring changes from sequpgrade (endReturn, ...) and some modernizations
This commit is contained in:
@@ -40,7 +40,7 @@ step_20() {
|
||||
exe apt-get install "${toolDeps[@]}" ${sq_aptOpt}
|
||||
info "Installing ${toolName} from ${sq_gitUrl}"
|
||||
exe git clone "${sq_gitUrl}" "${sc_whoogleDir:?}"
|
||||
endReturn -o $? "Cloning ${toolName} failed"
|
||||
endReturn "Cloning ${toolName} failed"
|
||||
|
||||
exe cd "${sc_whoogleDir:?}"
|
||||
exe python3 -m venv venv
|
||||
@@ -84,7 +84,7 @@ step_30_info() { echo "Upgrade installation using git"; }
|
||||
step_30_alias() { echo "upgrade"; }
|
||||
step_30() {
|
||||
exe cd "${sc_whoogleDir:?}"
|
||||
endReturn -o $? "${toolName} doesn't seam to be installed"
|
||||
endReturn "${toolName} doesn't seam to be installed"
|
||||
exe service "${toolName}" stop
|
||||
exe git pull
|
||||
}
|
||||
|
Reference in New Issue
Block a user