mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Merge branch 'ticket29065_squashed'
This commit is contained in:
commit
34601105a3
3
changes/ticket29065
Normal file
3
changes/ticket29065
Normal file
@ -0,0 +1,3 @@
|
||||
o Code simplification and refactoring (shell scripts):
|
||||
- Cleanup test_switch_id.sh to silence shellcheck warnings. Closes
|
||||
ticket 29065.
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user