caquino/redis-bash — Issue #2: needs redis-bash-lib in /usr/share
Author: badboy
Created: 2012-02-24 16:38:14+00:00
State: open

The current implementation relies on redis-bash-lib lying around in `/usr/share/redis-bash/`
Better load the lib from the same directory redis-bash-cli is in.

Something like this:

diff --git i/redis-bash-cli w/redis-bash-cli
index ac0c6a2..27f5ad6 100755
--- i/redis-bash-cli
+++ w/redis-bash-cli
@@ -3,7 +3,8 @@
# Poor man profiling - uncoment the next 2 lines
#set -x
#PS4='$(date "+%s.%N ($LINENO) + ")'
-source /usr/share/redis-bash/redis-bash-lib
+here=$(dirname $0)
+source "$here/redis-bash-lib"
REDISHOST=localhost
REDISPORT=6379
REPEAT=1