Skip to content

Commit d1131a0

Browse files
committed
POSIX-compatible shell invocation
&> is a bashism which doesn't work with different shells (like dash, which is default in Debian).
1 parent c243022 commit d1131a0

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)