aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Szakmeister <john@szakmeister.net>2015-02-09 06:13:47 -0500
committerJustin M. Keyes <justinkz@gmail.com>2015-02-09 12:44:22 -0500
commit3562f686b0a8ec0051ceaa12110be354c34fc0a0 (patch)
treee84cad2d52b421619df621a87d6bbdaca0876f6e
parentb0fb7ea19d4f102bd86c34cfa2ac62754712bd0a (diff)
downloadrneovim-3562f686b0a8ec0051ceaa12110be354c34fc0a0.tar.gz
rneovim-3562f686b0a8ec0051ceaa12110be354c34fc0a0.tar.bz2
rneovim-3562f686b0a8ec0051ceaa12110be354c34fc0a0.zip
Get rid of a bashism in the fs_spec test. #1964
FreeBSD doesn't use bash by default, causing the group id to be print out in the middle of the test.
-rw-r--r--test/unit/os/fs_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/os/fs_spec.lua b/test/unit/os/fs_spec.lua
index 90f5a0b7de..7051ed3797 100644
--- a/test/unit/os/fs_spec.lua
+++ b/test/unit/os/fs_spec.lua
@@ -262,7 +262,7 @@ describe('fs function', function()
it('owner of a file may change the group of the file to any group of which that owner is a member', function()
-- Some systems may not have `id` utility.
- if (os.execute('id -G &> /dev/null') == 0) then
+ if (os.execute('id -G > /dev/null 2>&1') == 0) then
local file_gid = lfs.attributes(filename, 'gid')
-- Gets ID of any group of which current user is a member except the