|
@ -16,8 +16,8 @@ function install_host { |
|
|
[ `id -u` -ne 0 ] && echo 'root privilege required' && exit 1 |
|
|
[ `id -u` -ne 0 ] && echo 'root privilege required' && exit 1 |
|
|
|
|
|
|
|
|
# required packages jq |
|
|
# required packages jq |
|
|
dpkg-query --status jq |
|
|
|
|
|
[ $? -ne 0 ] && sudo apt install -y jq |
|
|
|
|
|
|
|
|
/usr/bin/dpkg-query --status jq |
|
|
|
|
|
[ $? -ne 0 ] && /usr/bin/apt install -y jq |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ ! $BASEDIR == '/opt/debian-bash' ]]; then |
|
|
if [[ ! $BASEDIR == '/opt/debian-bash' ]]; then |
|
|