Feed /dev/null to Username prompt to fix hang when not logged in

This commit is contained in:
Joe Ferguson 2014-12-16 13:29:08 -08:00
parent 9318c9a41f
commit d96df73185
1 changed files with 1 additions and 1 deletions

View File

@ -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