Skip to content

Commit 8013a6e

Browse files
authored
Merge pull request #4 from reinerh/master
POSIX-compatible shell invocation
2 parents c243022 + d1131a0 commit 8013a6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

menu.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ table.insert(menu_gen.all_menu_dirs, string.format("%s/.nix-profile/share/applic
3232
-- Remove non existent paths in order to avoid issues
3333
local existent_paths = {}
3434
for k,v in pairs(menu_gen.all_menu_dirs) do
35-
if os.execute(string.format("ls %s &> /dev/null", v)) then
35+
if os.execute(string.format("ls %s >/dev/null 2>&1", v)) then
3636
table.insert(existent_paths, v)
3737
end
3838
end

0 commit comments

Comments
 (0)