diff options
author | M.Mahdi Bakhshi <33148504+thantez@users.noreply.github.com> | 2020-08-10 18:31:58 +0430 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-10 18:31:58 +0430 |
commit | 7390bb7f54ba5d80e3987dfc17f61c6a9728bdd7 (patch) | |
tree | a88ea4e24fb01da11c7a54007262eecf9e47ecd3 | |
parent | 0472e50a845b35317cd1a58fb5068d37c73238f0 (diff) | |
download | lite-xl-colors-7390bb7f54ba5d80e3987dfc17f61c6a9728bdd7.tar.gz lite-xl-colors-7390bb7f54ba5d80e3987dfc17f61c6a9728bdd7.zip |
Update make_preview_image.lua
-rwxr-xr-x | make_preview_image.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/make_preview_image.lua b/make_preview_image.lua index 8f6c55c..31f088d 100755 --- a/make_preview_image.lua +++ b/make_preview_image.lua @@ -1,8 +1,9 @@ #!/usr/bin/lua -local filename = "..." +local filename = ... local name = filename:match("([^\\/]+)%..*$") .. "_preview" + -- get colors local text = io.open(filename):read("*a") local colors = {} |