tsocks: Fix sed statement (#2475)

This commit is contained in:
Justsoos 2018-06-04 07:18:53 +08:00 committed by Fredrik Fornwall
parent 5ee3ed355f
commit f9c1aa3003
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ index 8380d9c..7d1df7a 100755
;;
off)
- export LD_PRELOAD=`echo -n $LD_PRELOAD | sed 's/\/usr\/lib\/libtsocks.so \?//'`
+ export LD_PRELOAD=`echo -n $LD_PRELOAD | sed "s:$PREFIX/lib/libtsocks.so \?::"`
+ export LD_PRELOAD=`echo -n $LD_PRELOAD | sed "s:$PREFIX/lib/libtsocks.so *::"`
if [ -z "$LD_PRELOAD" ]
then
unset LD_PRELOAD