refactoring changes from sequpgrade (endReturn, ...) and some modernizations
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user