Explicitly sort set names fetched via ftp nlist.
Several binary sets are stored as symbolic links on releases and it seems some ftpd doesn't sort nlist outputs by name in such case. Worth to pullup to netbsd-9 and netbsd-8.
This commit is contained in:
parent
15362761dc
commit
865f9b84f3
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
# $NetBSD: install.sub,v 1.55 2020/12/05 18:29:50 tsutsui Exp $
|
||||
# $NetBSD: install.sub,v 1.56 2020/12/05 18:33:47 tsutsui Exp $
|
||||
#
|
||||
# Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
|
@ -713,7 +713,7 @@ __install_ftp_2
|
|||
if [ $resp = '?' ]; then
|
||||
sh /tmp/ftp-dir.sh
|
||||
else
|
||||
_sets=$(sh /tmp/ftp-dir.sh | sh /tmp/fname_filter.sh)
|
||||
_sets=$(sh /tmp/ftp-dir.sh | sort -u | sh /tmp/fname_filter.sh)
|
||||
fi
|
||||
done
|
||||
rm -f /tmp/ftp-dir.sh /tmp/fname_filter.sh
|
||||
|
|
Loading…
Reference in New Issue