Skip to content

Commit

Permalink
Workaround for docker/for-win#1588
Browse files Browse the repository at this point in the history
  • Loading branch information
ceefour committed Feb 19, 2020
1 parent 305ef60 commit 69038ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dbench
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
function run () {
user=$1
shift
docker exec -itu "${user}" frappe bash -c "$@"
if [ -f '/usr/bin/winpty' ]; then
# Workaround for https://github.com/docker/for-win/issues/1588
/usr/bin/winpty docker exec -itu "${user}" frappe bash -c "$@"
else
docker exec -itu "${user}" frappe bash -c "$@"
fi
}

if [[ $# -eq 0 ]]; then
Expand Down

0 comments on commit 69038ee

Please sign in to comment.