1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-01 16:46:54 +03:00
Files
node-redis/doctests/run_examples.sh
Igor Malinovskiy caaca48ca1 Add Redis.io code examples
- Add set & get example
- Use bash script to test doc tests
- Add package.json to doctests
- Add search-quickstart
2023-05-17 12:17:34 +02:00

15 lines
240 B
Bash
Executable File

#!/bin/sh
basepath=`readlink -f $1`
if [ $? -ne 0 ]; then
basepath=`readlink -f $(dirname $0)`
fi
echo "No path specified, using ${basepath}"
set -e
cd ${basepath}
for i in `ls ${basepath}/*.js`; do
redis-cli flushdb
node $i
done