这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@callahad
Copy link
Contributor

@callahad callahad commented Nov 4, 2015

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This prints a nice failure message and then exits if $DOKKU_ROOT is empty or unset:

$ cat sc2115.sh
#!/usr/bin/env bash
FOO=""
echo ${FOO:?}

$ ./sc2115.sh
./sc2115.sh: line 3: FOO: parameter null or not set

$ echo $?
1

@callahad
Copy link
Contributor Author

callahad commented Nov 4, 2015

CI failed on npm install with remote: npm ERR! code ECONNRESET. Otherwise, everything looked good.

josegonzalez added a commit that referenced this pull request Nov 4, 2015
Resolve SC2115: 'Use "${var:?}" to ensure this never expands to /'
@josegonzalez josegonzalez merged commit 5f83476 into dokku:master Nov 4, 2015
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.

2 participants