no more stderr
This commit is contained in:
+5
-2
@@ -2,7 +2,6 @@
|
||||
|
||||
## CONSTANTS
|
||||
|
||||
MIAOU_BASH_DIR=/opt/miaou-bash
|
||||
MAIN_TAR_GZ_URL="https://git.artcode.re/miaou/miaou-bash/archive/main.tar.gz"
|
||||
|
||||
## FUNCTIONS
|
||||
@@ -27,7 +26,11 @@ deployment_type_adjective="${1:-installed}"
|
||||
[[ "$UID" -ne 0 ]] && echo 'root privilege required' && exit 1
|
||||
! assert_supported_distro && echo 'unsupported distro: debian-like OR arch-like expected' && exit 2
|
||||
|
||||
export MIAOU_BASH_DIR
|
||||
if [[ ! -v MIAOU_BASH_DIR ]]; then
|
||||
MIAOU_BASH_DIR=/opt/miaou-bash
|
||||
export MIAOU_BASH_DIR
|
||||
fi
|
||||
|
||||
if [[ -d "$MIAOU_BASH_DIR" && -L /etc/inputrc && "$(readlink /etc/inputrc)" == "$MIAOU_BASH_DIR"/etc/inputrc ]]; then
|
||||
. "$MIAOU_BASH_DIR"/bin/miaou-bash "$MIAOU_BASH_DIR/lib/self-upgrade.bash"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user