aboutsummaryrefslogtreecommitdiff
path: root/challenge-028/stuart-little/lua/ch-1.lua
diff options
context:
space:
mode:
authorMohammad S Anwar <Mohammad.Anwar@yahoo.com>2021-07-16 13:08:11 +0100
committerGitHub <noreply@github.com>2021-07-16 13:08:11 +0100
commit725be357a015b22d8edf035f1d98002e7e1dd2fc (patch)
tree367deff40344a46ad91854ede96a1c3ab5f86762 /challenge-028/stuart-little/lua/ch-1.lua
parent6bdc8180249407e9355661d9b74aa7af7ea30ee0 (diff)
parent2c0a6e7c1803be9cdf7d7cdfa845ce3b419035ea (diff)
downloadperlweeklychallenge-club-725be357a015b22d8edf035f1d98002e7e1dd2fc.tar.gz
perlweeklychallenge-club-725be357a015b22d8edf035f1d98002e7e1dd2fc.tar.bz2
perlweeklychallenge-club-725be357a015b22d8edf035f1d98002e7e1dd2fc.zip
Merge pull request #4529 from stuart-little/stuart-little_028_lua
1st commit on 028_lua
Diffstat (limited to 'challenge-028/stuart-little/lua/ch-1.lua')
-rwxr-xr-xchallenge-028/stuart-little/lua/ch-1.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/challenge-028/stuart-little/lua/ch-1.lua b/challenge-028/stuart-little/lua/ch-1.lua
new file mode 100755
index 0000000000..1bded6c1e5
--- /dev/null
+++ b/challenge-028/stuart-little/lua/ch-1.lua
@@ -0,0 +1,5 @@
+#!/usr/bin/env lua
+
+-- run <script> <path>
+
+print(io.popen("file -L "..arg[1]):read("a"):match("text") and "text file" or "not a text file")