Skip to content

Commit

Permalink
Support non-tty mode in push.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Jun 2, 2015
1 parent d04c9f9 commit 026292f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"

#docker pull $(awk '$1 == "FROM" { print $2 }' Dockerfile)
docker build -t docker-library-docs .
docker run -it --rm -v "$(pwd)":/wtf -w /wtf -e TERM --entrypoint 'bash' docker-library-docs -c './push.pl "$@"' -- "$@"
test -t 1 && it='-it' || it='-i'
docker run "$it" --rm -v "$(pwd)":/wtf -w /wtf -e TERM --entrypoint 'bash' docker-library-docs -c './push.pl "$@"' -- "$@"

0 comments on commit 026292f

Please sign in to comment.