samyk / easel-driver

Easel driver for Linux, Mac, Windows, ARM, Raspberry Pi, Intel, FTDI, CH340, CH341, CP210x, FTDI clones, local, and remote access to GRBL-based CNC controllers
95 stars 24 forks source link

change matcher for pkg file #21

Closed chansanuwat closed 2 years ago

chansanuwat commented 2 years ago

Current download for the mac driver does not include the version number which is expected in the regex.

Before:

curl -L https://easel.inventables.com/downloads | perl -ne 'print $1 if /href="([^"]+EaselDriver\S
+\.pkg[^"]*)/' | xargs curl -o EaselDriver.pkg
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3364    0  3364    0     0  10447      0 --:--:-- --:--:-- --:--:-- 10447
curl: no URL specified!

After:

curl -L https://easel.inventables.com/downloads | perl -ne 'print $1 if /href="([^"]+EaselDriver\S*\.pkg[^"]*)/' | xargs curl -o EaselDriver.pkg
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3364    0  3364    0     0   8184      0 --:--:-- --:--:-- --:--:--  8184
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 22.4M  100 22.4M    0     0  4550k      0  0:00:05  0:00:05 --:--:-- 4998k
samyk commented 2 years ago

Thanks! Looks like they changed the macOS package name, but oddly not the other OS filenames.