Skip to content

Commit

Permalink
add shebang & +x for util/transfer.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
alek13 committed Dec 28, 2022
1 parent d71de60 commit eef3c52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions util/transfer_races.lua
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env lua
-- This script is created to convert old races.txt file into SQL file
-- for import into minetest database
--
Expand All @@ -6,7 +7,7 @@
--
-- sqlite3 players.sqlite < races.sql
--
-- In case of other database read the documentation to database.
-- In case of other database read the documentation to database.
--
-- How to generate SQL file:
--
Expand All @@ -24,7 +25,7 @@ function read_races(filename)
end

function escape_str(s)
s = s:gsub('\'', '\'\'')
s = s:gsub('\'', '\'\'')
return "\'"..s.."\'"
end

Expand Down

0 comments on commit eef3c52

Please sign in to comment.