-
Notifications
You must be signed in to change notification settings - Fork 41
Description
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.