From d96df7318503bee599241fd258b6e0d9084aa33e Mon Sep 17 00:00:00 2001 From: Joe Ferguson Date: Tue, 16 Dec 2014 13:29:08 -0800 Subject: [PATCH] Feed /dev/null to Username prompt to fix hang when not logged in --- bashbrew.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashbrew.sh b/bashbrew.sh index ca11033..06dfa7b 100755 --- a/bashbrew.sh +++ b/bashbrew.sh @@ -322,7 +322,7 @@ while [ "$#" -gt 0 ]; do for namespace in $namespaces; do if [ "$doPush" ]; then echo "Pushing $namespace/$repoTag..." - if ! "$docker" push "$namespace/$repoTag" &> "$thisLog"; then + if ! "$docker" push "$namespace/$repoTag" &> "$thisLog" < /dev/null; then echo >&2 "- $namespace/$repoTag failed to push; see $thisLog" fi else