S&B Volcano vaporizer remote control with Pi Pico W
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

fetch.sh 375B

1234567891011121314
  1. #!/bin/bash
  2. # https://github.com/beautify-web/js-beautify
  3. ROOT="https://app.storz-bickel.com"
  4. FILES=`curl -s $ROOT | grep "text/javascript" | grep -v "jquery" | grep -v "bootstrap" | sed 's/.*src="//g' | sed 's*"></script>**g'`
  5. for F in $FILES
  6. do
  7. N=`echo $F | sed 's*/*_*g'`
  8. O=`echo $N | sed 's/.js/.min.js/g'`
  9. curl -o $O $ROOT/$F
  10. js-beautify $O > $N
  11. done