refactoring changes from sequpgrade (endReturn, ...) and some modernizations

This commit is contained in:
2023-01-03 15:49:08 +01:00
parent 215135e8aa
commit 3c22d5729f
69 changed files with 553 additions and 654 deletions

View File

@@ -12,7 +12,7 @@ seq_config() {
# End if no configuration file exists
dry || return 1
fi
## Apt cmdline option to suppress user interaction
interactive || sq_aptOpt="-y"
@@ -28,7 +28,7 @@ step_1() {
if [ "$(which lsb_release)" == "" ] ; then
warning -e "Cannot detect OS. Assuming Ubuntu"
osName="Ubuntu"
else
else
osName=$(lsb_release -is)
distName=$(lsb_release -cs)
fi
@@ -38,7 +38,7 @@ step_1() {
osName="Ubuntu"
fi
echo " [I] Detected OS: $osName $distName"
info "Detected OS: $osName $distName"
if [ "$osName" == "Ubuntu" ] ; then
exe apt-get update