summaryrefslogtreecommitdiff
path: root/redis.sh
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-03-31 13:56:31 +0200
committerAndreas Maunz <andreas@maunz.de>2011-03-31 13:56:31 +0200
commit6bcb46de198aff22039eeb40f2a4392421c823d8 (patch)
tree559e6b4b3e46021000a0d928edd6b40c2de1a829 /redis.sh
parentac2854eb48294aa36f096a8cd6b3a6769c6bec00 (diff)
all
Diffstat (limited to 'redis.sh')
-rwxr-xr-xredis.sh13
1 files changed, 3 insertions, 10 deletions
diff --git a/redis.sh b/redis.sh
index b536f42..4de3cfd 100755
--- a/redis.sh
+++ b/redis.sh
@@ -46,17 +46,10 @@ if ! $REDIS_DONE; then
cd $PREFIX
URI="http://redis.googlecode.com/files/redis-$REDIS_VER.tar.gz"
- if ! $WGET -O - "$URI" 2>>$LOG | tar zxv >>$LOG 2>&1; then
- printf "%25s%15s\n" "'Download'" "FAIL"
- fi
- printf "%25s%15s\n" "'Download'" "DONE"
-
+ cmd="$WGET -O - $URI" && run_cmd "$cmd" "Download"
+ cmd="tar zxf redis-$REDIS_VER.tar.gz" && run_cmd "$cmd" "Unpack"
cd redis-$REDIS_VER >>$LOG 2>&1
- if ! make >>$LOG 2>&1; then
- printf "%25s%15s\n" "'Make'" "FAIL"
- exit 1
- fi
- printf "%25s%15s\n" "'Make'" "DONE"
+ cmd="make" && run_cmd "$cmd" "Make"
if ! grep "daemonize yes" $REDIS_SERVER_CONF >>$LOG 2>&1 ; then
echo "daemonize yes" > $REDIS_SERVER_CONF 2>$LOG