Skip to content

tee /dev/tty error during vagrant build #227

@iMingLei

Description

@iMingLei

There is the same error that happened 3 times related to the code below through vagrant build.

Vagrant\oxar\utils\download.sh
Line 19: DOWNLOAD_OUTPUT=$(curl -L -O -C - ${download_path} --progress-bar 2> >(tee /dev/tty))

errors are as below:

==> default:
==> default: * Loading configurations *
==> default: tee: /dev/tty: No such device or address
==> default:
... ...
==> default: * Installing ratom *
==> default: which: no ratom in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/bin)
==> default: tee: /dev/tty: No such device or address
... ...
==> default: * Installing Oracle XE *
==> default: tee: /dev/tty: No such device or address
==> default: /var/tmp/rpm-tmp.miszrM: line 257: [: 18446744073692774399: integer expression expected
==> default: /var/tmp/rpm-tmp.miszrM: line 271: [: 18446744073692774399: integer expression expected

I guess the main idea for this snippet is to use tee to redirect stderror to /dev/tty. Somehow, with vagrant build, in this command substitution sub-shell, tee can not find /dev/tty in vagrant ssh.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions