Fix 'info -n'

This commit is contained in:
2022-05-29 21:12:51 +02:00
parent c6e62725da
commit e014397076
4 changed files with 13 additions and 13 deletions

View File

@@ -108,8 +108,8 @@ step_4() {
exe chmod 770 $SEQ_GITEA_CONF_DIR
info "Creating $giteaLogDir"
exe install -g $SEQ_GITEA_USER -m 770 -d "$giteaLogDir"
info -n "Copying gitea to global location and making it executable..."
exe install -b -m 755 -T "$giteaDownFile" "$SEQ_GITEA_BIN_LOC" && echo "ok"
sqr::echo -n "Copying gitea to global location and making it executable..."
exe install -b -m 755 -T "$giteaDownFile" "$SEQ_GITEA_BIN_LOC" && sqr::echo "ok"
endReturn "Failed to install $SEQ_GITEA_BIN_LOC"
}
@@ -184,8 +184,8 @@ step_12() {
exe service gitea stop
saveReturn $?
endReturn
info -n "Backing up existing executable to ${toolBackup}..."
exe cp -ar "$SEQ_GITEA_BIN_LOC" "$toolBackup" && info "ok" || info "nok"
sqr::echo -n "Backing up existing executable to ${toolBackup}..."
exe cp -ar "$SEQ_GITEA_BIN_LOC" "$toolBackup" && sqr::echo "ok" || sqr::echo "nok"
fi
exe install --backup=none -m 755 -T "$giteaDownFile" "$SEQ_GITEA_BIN_LOC"
endReturn -o $? "Upgrade failed"