File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ begin_test "ghe-backup-config GHE_CREATE_DATA_DIR disabled"
19
19
(
20
20
set -e
21
21
22
- export GHE_DATA_DIR=$( mktemp -d -u )
22
+ export GHE_DATA_DIR=" $TRASHDIR /create-enabled-data "
23
23
. share/github-backup-utils/ghe-backup-config 2>&1 \
24
24
| grep -q " Creating the backup data directory ..."
25
25
test -d $GHE_DATA_DIR
26
26
rm -rf $GHE_DATA_DIR
27
27
28
- export GHE_DATA_DIR=$( mktemp -d -u )
28
+ export GHE_DATA_DIR=" $TRASHDIR /create-disabled-data "
29
29
export GHE_CREATE_DATA_DIR=no
30
30
set +e
31
31
error=$( . share/github-backup-utils/ghe-backup-config 2>&1 )
Original file line number Diff line number Diff line change @@ -65,7 +65,8 @@ atexit () {
65
65
66
66
# cleanup injected test key
67
67
shared_path=$( dirname $( which ghe-detect-leaked-ssh-keys) )
68
- sed -i ' /98:d8:99:d3:be:c0:55:05:db:b0:53:2f:1f:ad:b3:60/d' " $shared_path /ghe-ssh-leaked-host-keys-list.txt"
68
+ sed -i.bak ' /98:d8:99:d3:be:c0:55:05:db:b0:53:2f:1f:ad:b3:60/d' " $shared_path /ghe-ssh-leaked-host-keys-list.txt"
69
+ rm -f " $shared_path /ghe-ssh-leaked-host-keys-list.txt.bak"
69
70
70
71
[ -z " $KEEPTRASH " ] && rm -rf " $TRASHDIR "
71
72
if [ $failures -gt 0 ]
You can’t perform that action at this time.
0 commit comments