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

View File

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