Skip to content

Commit

Permalink
Fix Crystal build on Linux: PWD => pwd (#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaicoleman authored and tj committed May 21, 2018
1 parent bbf4071 commit c0bbdad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/runtimes.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func clojureLein(c *Config) {
// crystal config.
func crystal(c *Config) {
if c.Hooks.Build.IsEmpty() {
c.Hooks.Build = Hook{`docker run --rm -v $(PWD):/src -w /src tjholowaychuk/up-crystal crystal build --link-flags -static -o server main.cr`}
c.Hooks.Build = Hook{`docker run --rm -v $(pwd):/src -w /src tjholowaychuk/up-crystal crystal build --link-flags -static -o server main.cr`}
}

if c.Hooks.Clean.IsEmpty() {
Expand Down
2 changes: 1 addition & 1 deletion docs/05-runtimes.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ When a `main.cr` file is detected, Crystal is the assumed runtime. Note that thi
The `build` hook becomes:

```
$ docker run --rm -v $(PWD):/src -w /src tjholowaychuk/up-crystal crystal build --link-flags -static -o server main.cr
$ docker run --rm -v $(pwd):/src -w /src tjholowaychuk/up-crystal crystal build --link-flags -static -o server main.cr
```

The `clean` hook becomes:
Expand Down

0 comments on commit c0bbdad

Please sign in to comment.