Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
fix: suggestions on passing down redis args through script
Browse files Browse the repository at this point in the history
  • Loading branch information
biswaroop1547 committed Nov 3, 2023
1 parent 73f3a8d commit 2a994cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vec-redis/setup-redis.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Usage: setup-redis.sh
# Usage: setup-redis.sh [redis-stack-server-options]
set -eEuo pipefail

tmpdir="${PREM_APPDIR:-.}/redis-$(uuidgen 2>/dev/null || uuid)"
Expand Down Expand Up @@ -31,6 +31,6 @@ mkdir -p "$tmpdir"
curl -fsSL "$url" > "$tmpdir/redis-stack-server.zip"
unzip -d "$tmpdir" "$tmpdir/redis-stack-server.zip"

PATH="$tmpdir/bin:$PATH" "$tmpdir/bin/redis-stack-server" &
PATH="$tmpdir/bin:$PATH" "$tmpdir/bin/redis-stack-server" "$@" &

wait

0 comments on commit 2a994cf

Please sign in to comment.