commit 34601105a39236cf6b21c9fe2ba78733c7788ff3 parent f229a336859be89fbf093355b50692b209b5dd30 Author: Nick Mathewson <nickm@torproject.org> Date: Sun, 24 Feb 2019 17:02:35 -0500 Merge branch 'ticket29065_squashed' Diffstat:
| A | changes/ticket29065 | | | 3 | +++ |
| M | src/test/test_switch_id.sh | | | 4 | ++-- |
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/changes/ticket29065 b/changes/ticket29065 @@ -0,0 +1,3 @@ + o Code simplification and refactoring (shell scripts): + - Cleanup test_switch_id.sh to silence shellcheck warnings. Closes + ticket 29065. diff --git a/src/test/test_switch_id.sh b/src/test/test_switch_id.sh @@ -1,11 +1,11 @@ #!/bin/sh -if test "`id -u`" != '0'; then +if test "$(id -u)" != '0'; then echo "This test only works when run as root. Skipping." >&2 exit 77 fi -if test "`id -u nobody`" = ""; then +if test "$(id -u nobody)" = ""; then echo "This test requires that your system have a 'nobody' user. Sorry." >&2 exit 1 fi