]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
install-deps.sh: use tee for writing a file 19516/head
authorKefu Chai <kchai@redhat.com>
Thu, 14 Dec 2017 11:06:51 +0000 (19:06 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 14 Dec 2017 11:06:53 +0000 (19:06 +0800)
commit0beb846e57b94786e84c35927fe5ef3a67857fa3
treeb6e52f2268e890bb137524b88dbe88df8a4b3522
parent0ba33080769d8aa696b7e704c01edf5c05cab6c1
install-deps.sh: use tee for writing a file

because the stdout redirect is performed by current shell not `$SUDO
cat`, so $SUDO does not help here. use `$SUDO tee` instead, which is
able to read the stdin and write to the given file just as expected.

Signed-off-by: Kefu Chai <kchai@redhat.com>
install-deps.sh