Skip to content

Commit 16bc68d

Browse files
authored
Merge pull request #248 from ShannonDing/build
fix(build): fix variable check error in the build script
2 parents f9325bb + 249d1e6 commit 16bc68d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ BuildLibevent() {
170170
exit 1
171171
fi
172172

173-
libevent_dir=$(ls | grep libevent | grep .*[^zip^txt]$)
173+
libevent_dir=$(ls | grep ^libevent | grep .*[^zip^txt]$)
174174
cd ${libevent_dir}
175175
if [ $? -ne 0 ]; then
176176
exit 1
@@ -264,7 +264,7 @@ BuildBoost() {
264264
wget http://sourceforge.net/projects/boost/files/boost/${fname_boost_down}
265265
fi
266266
tar -zxvf ${fname_boost} >unzipboost.txt 2>&1
267-
boost_dir=$(ls | grep boost | grep .*[^gz]$)
267+
boost_dir=$(ls | grep ^boost | grep .*[^gz]$)
268268
cd ${boost_dir}
269269
if [ $? -ne 0 ]; then
270270
exit 1

0 commit comments

Comments
 (0)