From 51ea865569fa5b9b76a1907610700623863ffb55 Mon Sep 17 00:00:00 2001 From: orbiter Date: Fri, 10 Apr 2009 09:44:03 +0000 Subject: [PATCH] small fix for localsearch shell script git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5792 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- bin/localsearch.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/localsearch.sh b/bin/localsearch.sh index 3d43b2807..8acf586ba 100755 --- a/bin/localsearch.sh +++ b/bin/localsearch.sh @@ -1,3 +1,5 @@ +#!/bin/bash +cd "`dirname $0`" port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2) if which curl &>/dev/null; then curl -s "http://localhost:$port/yacysearch.rss?resource=local&verify=false&query=$1" | awk '/^/{ gsub("","" );gsub("<\/link>","" ); print $0 }'