aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-02-24 17:02:35 -0500
committerNick Mathewson <nickm@torproject.org>2019-02-24 17:02:35 -0500
commit34601105a39236cf6b21c9fe2ba78733c7788ff3 (patch)
tree580ff122c4b4d5f65c1d9a8697ec32d962404a2f /src
parentf229a336859be89fbf093355b50692b209b5dd30 (diff)
parentb7dced893a7de1c0ba303905f69022fee7d05fc9 (diff)
downloadtor-34601105a39236cf6b21c9fe2ba78733c7788ff3.tar.gz
tor-34601105a39236cf6b21c9fe2ba78733c7788ff3.zip
Merge branch 'ticket29065_squashed'
Diffstat (limited to 'src')
-rwxr-xr-xsrc/test/test_switch_id.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_switch_id.sh b/src/test/test_switch_id.sh
index 79c44f2eb1..b13bf7602f 100755
--- 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