erovira / transa-script

Shell script to compute the Itaú/BROU mean USD/UYU exchange rate
7 stars 2 forks source link

Bashisms not working on Ubuntu #5

Closed erovira closed 1 year ago

erovira commented 1 year ago

On a mac, using /bin/sh works just fine, but on Ubuntu we get the following error

└─ $ ▶ transa 1000
/home/eugenio/.local/bin/transa: 32: [[: not found
/home/eugenio/.local/bin/transa: 49: [[: not found
/home/eugenio/.local/bin/transa: 55: [[: not found
Correct usage examples:
  transa
  transa <amount>
  transa <amount> brou
  transa <amount> itau
  transa itau
  transa brou

If using amount with $, make sure to escape it:
  transa \$20000'
  transa \$20000' brou