new installation process
This commit is contained in:
+1
-3
@@ -55,11 +55,9 @@ function sudo_root {
|
||||
}
|
||||
## MAIN
|
||||
|
||||
# source <(curl -s https://git.artcode.re/miaou/miaou-bash/raw/branch/main/install2.sh)
|
||||
|
||||
set -Eeuo pipefail
|
||||
assert_supported_distro
|
||||
sudo_root
|
||||
deployment_type_adjective="${1:-installed}"
|
||||
if once_installed; then upgrade; else install; fi
|
||||
exec bash -l
|
||||
[[ $deployment_type_adjective == 'installed' ]] && exec bash -l
|
||||
|
||||
@@ -10,7 +10,8 @@ function self_upgrade {
|
||||
if "$backup"/install.sh upgraded; then
|
||||
sudo rm -rf "$backup"
|
||||
echo -n "version: "
|
||||
. "$MIAOU_BASH_DIR"/bin/miaou-bash --version
|
||||
miaou-bash --version
|
||||
exec bash -l
|
||||
else
|
||||
echo "ERROR: trouble during self-upgrade: revert back"
|
||||
sudo rm -rf "$MIAOU_BASH_DIR"
|
||||
|
||||
Reference in New Issue
Block a user