The International Simutrans Forum

 

Author Topic: Fix and improve get_pak.sh  (Read 343 times)

0 Members and 1 Guest are viewing this topic.

Offline ceeac

  • Devotee
  • *
  • Posts: 259
Fix and improve get_pak.sh
« on: February 22, 2020, 08:18:25 AM »
This patch fixes and improves get_pak.sh. Most notable changes:
  • Fixed failure to install zipped paksets which only contain a simutrans/ folder at the root (e.g. pak64)
  • Added support for installing paksets from .cab and .tar.gz files (pak128.japan and pak64.h0scale)
  • Updated link to newest version of pak64.german (old link was dead)
  • Added progress bar for curl/wget downloads
  • Added check for correct installation directory (must end with /simutrans)
I have only tested this on Linux, I do not know if it works on mingw/cygwin.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10673
  • Languages: De,EN,JP
Re: Fix and improve get_pak.sh
« Reply #1 on: February 22, 2020, 01:21:47 PM »
There was a return in line 214 which should have been an exit. Otherwise it seems to work. In it r8933