1
0
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:
d33tah
2013-08-29 13:34:23 +00:00
parent 02b7b0ac8e
commit d68d608d7d
6 changed files with 34 additions and 34 deletions

View File

@@ -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