File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
share/github-backup-utils Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,9 @@ if echo 'set -o pipefail; ! test -e /data/user/common/es-scan-complete && test -
41
41
fi
42
42
fi
43
43
44
- while read index; do
44
+ IFS=$' \n '
45
+ for index in $indices ; do
46
+ IFS=' '
45
47
set $index
46
48
index_name=$1
47
49
index_size=$2
@@ -54,6 +56,6 @@ while read index; do
54
56
ghe-ssh " $host " " /usr/local/share/enterprise/ghe-es-dump-json \" http://localhost:$es_port /$index_name \" " | gzip > $GHE_SNAPSHOT_DIR /audit-log/$index_name .gz
55
57
echo $index_size > $GHE_SNAPSHOT_DIR /audit-log/$index_name .gz.size
56
58
fi
57
- done <<< " $indices "
59
+ done
58
60
59
61
bm_end " $( basename $0 ) "
Original file line number Diff line number Diff line change 34
34
# Hookshot indices may not exist if no recent webhook deliveries have occured.
35
35
[ -z " $indices " ] && exit
36
36
37
- while read index; do
37
+ IFS=$' \n '
38
+ for index in $indices ; do
39
+ IFS=' '
38
40
set $index
39
41
index_name=$1
40
42
index_size=$2
@@ -47,6 +49,6 @@ while read index; do
47
49
ghe-ssh " $host " " /usr/local/share/enterprise/ghe-es-dump-json \" http://localhost:$es_port /$index_name \" " | gzip > $GHE_SNAPSHOT_DIR /hookshot/$index_name .gz
48
50
echo $index_size > $GHE_SNAPSHOT_DIR /hookshot/$index_name .gz.size
49
51
fi
50
- done <<< " $indices "
52
+ done
51
53
52
54
bm_end " $( basename $0 ) "
You can’t perform that action at this time.
0 commit comments