komodo-modems-update 431 Bytes
#!/bin/bash

set -x 

tmp_dir=$(mktemp -d -t komodo-modems-update-XXXXXXXXXX)

cd $tmp_dir
git clone http://gitlab.kodesumber.com/komodo/komodo-modem-sms.git modem
cd $tmp_dir/modem
npm ci;

for i in ACM USB; do
    seq 0 55| xargs -n1 -P 5 -I{} /home/komodo/bin/komodo-modems-update-helper $i{} $tmp_dir/modem/node_modules
    #seq 0 55| xargs -n1 -P 5 -I{} /home/komodo/bin/komodo-modems-update-helper $i{}
done

rm -rf $tmp_dir