From d84c0397426575102e87fff77236733a1d526ceb Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Wed, 4 Sep 2019 23:36:23 +0200 Subject: [PATCH] Example of shebang on Lua script --- client/luascripts/cmdline.lua | 3 +++ 1 file changed, 3 insertions(+) mode change 100644 => 100755 client/luascripts/cmdline.lua diff --git a/client/luascripts/cmdline.lua b/client/luascripts/cmdline.lua old mode 100644 new mode 100755 index dc1e752c1..baa76eed6 --- a/client/luascripts/cmdline.lua +++ b/client/luascripts/cmdline.lua @@ -1,5 +1,8 @@ +#!/usr/bin/env -S pm3 -l + --[[ A sampe script file on how to implement at cmd line inteface. +It also demonstrates how the script can be used with a shebang. --]] print("This is how a cmd-line interface could be implemented\nPrint 'exit' to exit.\n")