tsocks: Fix sed statement (#2475)
This commit is contained in:
parent
5ee3ed355f
commit
f9c1aa3003
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user