Skip to content

Commit

Permalink
topmem: Fix wrong argument passing in short option variant
Browse files Browse the repository at this point in the history
Signed-off-by: Vasiliy Stelmachenok <[email protected]>
  • Loading branch information
ventureoo committed Oct 19, 2024
1 parent ea9e234 commit 6b32afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/bin/topmem
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ local function main()
local shift = true

for value in string.gmatch(arg[i], "([^=]+)") do
if value ~= "--sort" then
if value ~= "--sort" and value ~= "-s" then
criteria = value
shift = false
break
Expand Down

0 comments on commit 6b32afb

Please sign in to comment.