We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aecfcf1 commit e825a07Copy full SHA for e825a07
bin/bashrc.redis-scan.sh
@@ -517,10 +517,9 @@ RedisScan() { # scan command with sleep between iterations
517
value="$json"
518
if [ "$colorJson" = 1 ]
519
then
520
- if echo '{}' | pygmentize -l json 2>&1 >/dev/null
+ if echo '{}' | pygmentize -l json 2>/dev/null >/dev/null
521
522
- value=`echo "$json" | pygmentize -l json 2>/dev/null || echo ''`
523
- [ -n "$value" ] || value="$json"
+ value=`echo "$json" | pygmentize -l json 2>/dev/null || echo "$json"`
524
fi
525
526
0 commit comments