Project

General

Profile

« Previous | Next » 

Revision 3162

Added by Jing Tao almost 18 years ago

Fixed a bug that the metacat url will still read from parameter 1

View differences:

lib/buildIndex.sh
13 13
    exit 1
14 14
fi 
15 15
echo 'Please type metacat url (It should look like "http://pacific.msi.ucsb.edu:8080/knb/metacat")'
16
read metacatURL
16
read metacatBaseURL
17 17
echo 'Please type KNB user name (It should look like "uid=tao,o=NCEAS,dc=ecoinformatics,dc=org")'
18 18
read username
19 19
echo 'Please type password'
......
24 24
wget -q -O - --save-cookies cookies --keep-session-cookies "$loginurl"
25 25

  
26 26
suffix="?action=buildindex"
27
metacatURL="$metacatURL$suffix"
27
metacatURL="$metacatBaseURL$suffix"
28 28

  
29 29
FILE=$1
30 30
# make sure file exist and readable
......
54 54
	       echo "here is url $metacatURL"
55 55
	       wget -q -O - --load-cookies cookies "$metacatURL"
56 56
	       index=0;
57
	       metacatURL="$1$suffix"
57
	       metacatURL="$metacatBaseURL$suffix"
58 58
	    fi
59 59
	fi		
60 60
done

Also available in: Unified diff