From 6af2ede49a5001c6e2be300a3cdf4073c3e79909 Mon Sep 17 00:00:00 2001 From: Robert Peichaer Date: Sat, 20 Feb 2016 12:08:56 +0000 Subject: Combine two sed calls into one. OK krw@, halex@ --- distrib/miniroot/install.sub | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index e7263b2f5d8..081f8cae9e4 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.878 2016/02/20 12:03:11 rpe Exp $ +# $OpenBSD: install.sub,v 1.879 2016/02/20 12:08:55 rpe Exp $ # # Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback # Copyright (c) 2015, Robert Peichaer @@ -1467,8 +1467,7 @@ install_http() { # Get list of files from the server. # Assumes index file is "index.txt" for http (or proxy). # We can't use index.html since the format is server-dependent. - _file_list=$(ftp -Vo - "$_url_base/index.txt" | - sed 's/^.* //' | sed 's/ //') + _file_list=$(ftp -Vo - "$_url_base/index.txt" | sed 's/^.* //;s/ //') install_files "$_url_base" "$_file_list" -- cgit v1.2.3