Skip to content

Commit d2aa6cd

Browse files
committed
replace awk with gawk
1 parent 57643f2 commit d2aa6cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/filename_factory.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ local anki_compatible_length = (function()
3131
end
3232

3333
local ret = h.subprocess {
34-
'awk',
34+
'gawk',
3535
'-v', string.format('str=%s', str),
3636
'-v', string.format('limit=%d', limit_chars),
3737
'BEGIN{print substr(str, 1, limit); exit}'
@@ -52,8 +52,8 @@ local make_media_filename = function()
5252
filename = h.remove_extension(filename)
5353

5454
local operations = {
55-
h.remove_filename_text_in_parentheses,
56-
h.remove_text_in_brackets,
55+
h.remove_filename_text_in_parentheses,
56+
h.remove_text_in_brackets,
5757
h.remove_special_characters
5858
}
5959
for _, f in ipairs(operations) do

0 commit comments

Comments
 (0)