diff options
author | soumith <soumith@fb.com> | 2016-03-05 00:48:35 +0300 |
---|---|---|
committer | soumith <soumith@fb.com> | 2016-03-05 00:48:35 +0300 |
commit | cadd701a56dc842b2eab5e6c62126ee4d016244b (patch) | |
tree | e3b637de87f5465055cbe901e8c596fc0ee4bddc | |
parent | 77f10a2b95f30a08e9a439532c508632b7893f79 (diff) |
making sys.OS be protected
-rw-r--r-- | init.lua | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -78,7 +78,8 @@ function sys.uname() end end end -sys.OS = sys.uname() +local _, os = pcall(sys.uname) +sys.OS = os -------------------------------------------------------------------------------- -- ls (list dir) @@ -174,4 +175,4 @@ sys.COLORS = {none = '\27[0m', sys.dirname = paths.dirname sys.concat = paths.concat -return sys
\ No newline at end of file +return sys |