diff --git a/install.sh b/install.sh index b9a748c..486afd6 100755 --- a/install.sh +++ b/install.sh @@ -2,19 +2,15 @@ function install() { - echo "install on: $HOSTNAME" - echo ---------------------- - [ "$(id -u)" -ne 0 ] && echo 'root privilege required' && exit 1 if [[ ! $CURDIR == '/opt/miaou-bash' ]]; then # download and fullfill /opt/miaou-bash, then run it from folder if [[ -L /opt/miaou-bash ]]; then - cd /opt/miaou-bash && ./install.sh "$PARAM1" + cd /opt/miaou-bash && ./install.sh exit 0 else - rm -rf /opt/miaou-bash TEMP=$(mktemp -d) cd "$TEMP" || return