Fix exit status.
This commit is contained in:
parent
1721f67485
commit
ee6a42fe66
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=4680
1 changed files with 9 additions and 4 deletions
|
@ -4,15 +4,20 @@
|
|||
# packages - create a sorted list of precompiled packages which
|
||||
# are available at the FreeBSD FTP Server.
|
||||
#
|
||||
# $Id: packages,v 1.3 1999-01-14 08:31:31 asami Exp $
|
||||
# $Id: packages,v 1.4 1999-04-13 12:13:32 wosch Exp $
|
||||
|
||||
PATH=/bin:/usr/bin:/usr/local/bin; export PATH
|
||||
|
||||
release='packages-stable';
|
||||
url="ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/$release/All/"
|
||||
|
||||
temp=_lynx$$
|
||||
|
||||
lynx -source "$url" |
|
||||
perl -ne 'print $1, "\n" if m%href="([^"]+)"%oi' |
|
||||
if lynx -source "$url" > $temp; then
|
||||
perl -ne 'print $1, "\n" if m%href="([^"]+)"%oi' < $temp |
|
||||
perl -npe 's%.*/%%' | sort | grep -v '^\.\.$'
|
||||
|
||||
rm -f $temp
|
||||
else
|
||||
rm -f $temp
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue