Skip to content

Commit

Permalink
Use tee over a shell redirect.
Browse files Browse the repository at this point in the history
Signed-off-by: Krzysztof Wilczynski <kw@linux.com>
  • Loading branch information
kwilczynski committed Mar 21, 2018
1 parent a170580 commit c135a4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/common/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ fi
# boxes.
if [[ -z $AMAZON_EC2 ]]; then
# Render template overriding default list.
eval "echo \"$(cat /var/tmp/vagrant/sources.list.template)\"" \
> /etc/apt/sources.list
eval "echo \"$(cat /var/tmp/vagrant/sources.list.template)\"" | \
tee /etc/apt/sources.list >/dev/null

chown root: /etc/apt/sources.list
chmod 644 /etc/apt/sources.list
Expand Down

0 comments on commit c135a4e

Please sign in to comment.