diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2019-04-03 18:03:34 +0300 |
---|---|---|
committer | rl1987 <rl1987@sdf.lonestar.org> | 2019-04-03 18:03:34 +0300 |
commit | 4172b638b8221e2d56c20e2a408948977c68358a (patch) | |
tree | 2827f920ed8ab9448a305d95b55f5a7789f9d291 /src/test/test_key_expiration.sh | |
parent | 9e04a8722081cd761ee3a2e173b53c7859a8c916 (diff) | |
download | tor-4172b638b8221e2d56c20e2a408948977c68358a.tar.gz tor-4172b638b8221e2d56c20e2a408948977c68358a.zip |
Fix SC2015 warning
Diffstat (limited to 'src/test/test_key_expiration.sh')
-rwxr-xr-x | src/test/test_key_expiration.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_key_expiration.sh b/src/test/test_key_expiration.sh index 8614a4fa48..1ed81c81c7 100755 --- a/src/test/test_key_expiration.sh +++ b/src/test/test_key_expiration.sh @@ -47,7 +47,7 @@ dump() { xxd -p "$1" | tr -d '\n '; } die() { echo "$1" >&2 ; exit 5; } check_dir() { [ -d "$1" ] || die "$1 did not exist"; } check_file() { [ -e "$1" ] || die "$1 did not exist"; } -check_no_file() { [ -e "$1" ] && die "$1 was not supposed to exist" || true; } +check_no_file() { if [ -e "$1" ]; then die "$1 was not supposed to exist"; fi } check_files_eq() { cmp "$1" "$2" || die "$1 and $2 did not match: $(dump "$1") vs $(dump "$2")"; } check_keys_eq() { check_files_eq "${SRC}/keys/${1}" "${ME}/keys/${1}"; } |