mirror of
https://github.com/nmap/nmap.git
synced 2025-12-08 05:31:31 +00:00
Fix coding style of all scripts with Lunadry.
This commit is contained in:
@@ -4,30 +4,30 @@
|
||||
|
||||
while true do
|
||||
|
||||
print("Here's a menu for you: ")
|
||||
print("1. Repeat the menu.")
|
||||
print("0. Exit.")
|
||||
print "Here's a menu for you: "
|
||||
print "1. Repeat the menu."
|
||||
print "0. Exit."
|
||||
|
||||
io.write("Please enter your choice: ")
|
||||
io.flush(io.stdout)
|
||||
i = io.read()
|
||||
io.write "Please enter your choice: "
|
||||
io.flush(io.stdout)
|
||||
i = io.read()
|
||||
|
||||
--WARNING! Without this line, the script will go into an infinite loop
|
||||
--that keeps consuming system resources when the connection gets broken.
|
||||
--Ncat's subprocesses are NOT killed in this case!
|
||||
if i == nil then
|
||||
break
|
||||
end
|
||||
--WARNING! Without this line, the script will go into an infinite loop
|
||||
--that keeps consuming system resources when the connection gets broken.
|
||||
--Ncat's subprocesses are NOT killed in this case!
|
||||
if i == nil then
|
||||
break
|
||||
end
|
||||
|
||||
print("You wrote: ",i,".")
|
||||
print("You wrote: ", i, ".")
|
||||
|
||||
if i == "0" then
|
||||
break
|
||||
elseif i == "1" then
|
||||
print("As you wish.")
|
||||
else
|
||||
print("No idea what you meant. Please try again.")
|
||||
end
|
||||
if i == "0" then
|
||||
break
|
||||
elseif i == "1" then
|
||||
print "As you wish."
|
||||
else
|
||||
print "No idea what you meant. Please try again."
|
||||
end
|
||||
|
||||
print() --print a newline
|
||||
print() --print a newline
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user