Browse Source

fix install /bin/jq

master
pvincent 4 years ago
parent
commit
eb4272dccb
  1. 6
      install.sh

6
install.sh

@ -15,6 +15,11 @@ 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
dpkg-query --status jq
[ $? -ne 0 ] && sudo apt install -y jq
if [[ ! $BASEDIR == '/opt/debian-bash' ]]; then if [[ ! $BASEDIR == '/opt/debian-bash' ]]; then
# download and filfull /opt/debian-bash, then run it from folder # download and filfull /opt/debian-bash, then run it from folder
@ -23,6 +28,7 @@ function install_host {
./install.sh $PARAM1 ./install.sh $PARAM1
exit 0 exit 0
else else
rm -rf /opt/debian-bash rm -rf /opt/debian-bash
TEMP=`mktemp -d` TEMP=`mktemp -d`
cd $TEMP cd $TEMP

Loading…
Cancel
Save