Skip to content

Commit c8cc5c2

Browse files
committed
tweak
1 parent eb5af08 commit c8cc5c2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
run: docker build --pull -t kooldev/bash:${{ matrix.version }} .
2020

2121
- name: Test docker images
22-
run: docker run kooldev/bash:${{ matrix.version }} bash --version
23-
run: docker run kooldev/bash:${{ matrix.version }} echo kool stuff
22+
run: docker run kooldev/bash:${{ matrix.version }} --version
23+
run: docker run kooldev/bash:${{ matrix.version }} -c "echo kool stuff"
2424

2525
- name: Push to Hub
2626
if: github.ref == 'refs/heads/master' && github.repository == 'kool-dev/docker-php'

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Minimal Bash Docker image. Its use is intended for [kool](https://github.com/koo
77
With `docker run`:
88

99
```sh
10-
docker run -it --rm kooldev/bash:latest bash --version
11-
docker run -it --rm kooldev/bash:latest echo "kool stuff"
10+
docker run -it --rm kooldev/bash:latest --version
11+
docker run -it --rm kooldev/bash:latest -c "echo kool stuff"
1212
```
1313

1414
## License

entrypoint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -e
33

44
# first arg is `-f` or `--some-option`
55
if [ "${1#-}" != "$1" ]; then
6-
set -- bash -c "$@"
6+
set -- bash "$@"
77
fi
88

99
# Run as current user

0 commit comments

Comments
 (0)