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.
2 parents b093dd1 + eb7c7c7 commit 5c49f77Copy full SHA for 5c49f77
sourcestats.sh
@@ -1,4 +1,4 @@
1
-#!/bin/sh
+#!/usr/bin/env bash
2
3
lists="
4
alternates/fakenews
@@ -73,12 +73,10 @@ for item in $lists; do
73
# echo $item $HASH_DATE
74
IFS=" "
75
split=(${HASH_DATE//,/ })
76
- git checkout ${split[0]} ${item}/hosts 1> /dev/null 2> /dev/null
77
- domains=$(rh -q -m $item/hosts)
+ domains=$(rh -q -m <(git show ${split[0]}:$item/hosts))
78
echo $item ${split[1]} ${domains}
79
echo ${split[1]},${domains} >> ${item}/stats.out
80
IFS='
81
'
82
done
83
- git checkout HEAD^ ${item}/hosts 1> /dev/null 2> /dev/null
84
0 commit comments