]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/clean/server/test.sh
Translated using Weblate (Japanese)
[github/Chocobozzz/PeerTube.git] / scripts / clean / server / test.sh
index f85daf810b162161370eca0fb6dd485ef621a3cd..1f1c9cec0bec60809a14ca63e5b6e5edd3b9d95e 100755 (executable)
@@ -18,11 +18,11 @@ removeFiles () {
 
 dropRedis () {
   port=$((9000+$1))
-  host="localhost"
+  host="127.0.0.1"
 
-  redis-cli -h "$host" KEYS "bull-localhost:$port*" | grep -v empty | xargs --no-run-if-empty redis-cli -h "$host" DEL
-  redis-cli -h "$host" KEYS "redis-localhost:$port*" | grep -v empty | xargs --no-run-if-empty redis-cli -h "$host" DEL
-  redis-cli -h "$host" KEYS "*redis-localhost:$port-" | grep -v empty | xargs --no-run-if-empty redis-cli -h "$host" DEL
+  redis-cli -h "$host" KEYS "bull-127.0.0.1:$port*" | grep -v empty | xargs -r redis-cli -h "$host" DEL
+  redis-cli -h "$host" KEYS "redis-127.0.0.1:$port*" | grep -v empty | xargs -r redis-cli -h "$host" DEL
+  redis-cli -h "$host" KEYS "*redis-127.0.0.1:$port-" | grep -v empty | xargs -r redis-cli -h "$host" DEL
 }
 
 seq=$(seq 1 6)