diff options
author | Robert Peichaer <rpe@cvs.openbsd.org> | 2016-02-20 12:08:56 +0000 |
---|---|---|
committer | Robert Peichaer <rpe@cvs.openbsd.org> | 2016-02-20 12:08:56 +0000 |
commit | 6af2ede49a5001c6e2be300a3cdf4073c3e79909 (patch) | |
tree | 1682359f2efe4a7bad760435445ebaeed0a1aaa2 | |
parent | 49f76bb60c85bfd24f6e52c570d1c89c52d9bbf8 (diff) |
Combine two sed calls into one.
OK krw@, halex@
-rw-r--r-- | distrib/miniroot/install.sub | 5 |
1 files 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 <rpe@openbsd.org> @@ -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" |