diff options
Diffstat (limited to '.lush')
| -rw-r--r-- | .lush/scripts/example.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.lush/scripts/example.lua b/.lush/scripts/example.lua index 8da0435..04cb516 100644 --- a/.lush/scripts/example.lua +++ b/.lush/scripts/example.lua @@ -44,3 +44,8 @@ print(cwd) lush.cd("~/.lush/scripts") lush.exec('cat "example.lua" | grep "hello" | sort | uniq') lush.cd(cwd) + +-- exists allows you to check if a file or directory exists +if lush.exists("~/.lush/scripts/example.lua") then + print("example.lua exists") +end |
