Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Portable way of using heredocs. Fixes #14 on macOS. - #27

Merged
CTXz merged 1 commit into
reHackable:masterfrom
shreevatsa:master
Nov 10, 2020
Merged

CTXz merged 1 commit into
reHackable:masterfrom
shreevatsa:master

Conversation

@shreevatsa

@shreevatsa shreevatsa commented Nov 4, 2020 •

Copy link
Copy Markdown
Contributor

This fixes the issue #14 about repush.sh failing on macOS with a Bash syntax error. With this fix it should work on all systems (tested to work on macOS, and per my understanding of the standards, it should not cause a problem anywhere).

I learned of this from https://stackoverflow.com/a/2954835 (see “To pipe the heredoc through a command pipeline”) and from https://stackoverflow.com/a/7046926 which points to https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_07_04

@CTXz
CTXz merged commit 783fbfc into reHackable:master Nov 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants