Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reposition i increment so it only increments when processing a platform tag #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pieterverstraete
Copy link

Currently the script displays all entries as Departure, while half of them are an Arrival:

./iRail.sh Sint-Niklaas Antwerpen-Centraal
2018-02-14T14:26
Departure
platform 4
2018-02-14T14:54
Departure
platform 1
2018-02-14T14:45
Departure
platform 4
2018-02-14T15:09
Departure
platform 4
2018-02-14T15:00
Departure
platform 4
2018-02-14T15:23
Departure
platform 1

The fix looks like this:

./iRail.sh Sint-Niklaas Antwerpen-Centraal
2018-02-14T14:26
Departure
platform 4
2018-02-14T14:54
Arrival
platform 1
2018-02-14T14:45
Departure
platform 4
2018-02-14T15:09
Arrival
platform 4
2018-02-14T15:00
Departure
platform 4
2018-02-14T15:23
Arrival
platform 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant