diff --git a/install.sh b/install.sh index ecf56b6..9f5bf55 100755 --- a/install.sh +++ b/install.sh @@ -15,6 +15,11 @@ function install_host { [ `id -u` -ne 0 ] && echo 'root privilege required' && exit 1 + # required packages jq + dpkg-query --status jq + [ $? -ne 0 ] && sudo apt install -y jq + + if [[ ! $BASEDIR == '/opt/debian-bash' ]]; then # download and filfull /opt/debian-bash, then run it from folder @@ -23,6 +28,7 @@ function install_host { ./install.sh $PARAM1 exit 0 else + rm -rf /opt/debian-bash TEMP=`mktemp -d` cd $TEMP