Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Fix loop syntax in runPantheonPrivateNetwork.sh #237

Merged
merged 1 commit into from Nov 4, 2018
Merged

Fix loop syntax in runPantheonPrivateNetwork.sh #237

merged 1 commit into from Nov 4, 2018

Conversation

matt9ucci
Copy link
Contributor

PR description

Changed while loop syntax to the POSIX test expression. The runPantheonPrivateNetwork.sh will not ignore its options.

Fixed Issue(s)

while (( "$#" )) in the runPantheonPrivateNetwork.sh does not work in some shells. For example, in /bin/sh on boot2docker (Tiny Core Linux based on busybox), the following error occured:

$ ./quickstart/runPantheonPrivateNetwork.sh --skip-build --rpc-port 1234 --ws-port 5678
./quickstart/runPantheonPrivateNetwork.sh: line 59: 5: not found

The runPantheonPrivateNetwork.sh continues to process after the error, but its options, --skip-build --rpc-port 1234 --ws-port 5678, are ignored.

`while (( "$#" ))` does not work in some shells.
Copy link
Contributor

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the fix.

@ajsutton ajsutton merged commit fbf121b into PegaSysEng:master Nov 4, 2018
@matt9ucci matt9ucci deleted the patch-1 branch November 11, 2018 22:54
shemnon pushed a commit to shemnon/pantheon that referenced this pull request Nov 14, 2018
`while (( "$#" ))` does not work in some shells.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants