Skip to content

Commit

Permalink
Merge ff5ced4 into 6c173d0
Browse files Browse the repository at this point in the history
  • Loading branch information
rl1987 committed Feb 15, 2019
2 parents 6c173d0 + ff5ced4 commit edcaf1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions 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.
4 changes: 2 additions & 2 deletions 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
Expand Down

0 comments on commit edcaf1c

Please sign in to comment.