diff options
Diffstat (limited to 'lib/format.lua')
-rw-r--r-- | lib/format.lua | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/format.lua b/lib/format.lua index 331d112..63b8fec 100644 --- a/lib/format.lua +++ b/lib/format.lua @@ -187,17 +187,6 @@ function string_to_table ( text, delimiter) return list end -function md5sum_string ( str) - local cmd = "/bin/echo -n \"" .. format.escapespecialcharacters(str) .. "\"|/usr/bin/md5sum|cut -f 1 -d \" \" " - f = io.popen(cmd) - local checksum = {} - for line in f:lines() do - checksum[#checksum + 1] = line - end - f:close() - return checksum[1] -end - -- Takes a str and expands any ${...} constructs with the Lua variable -- ex: a="foo"; print(expand_bash_syntax_vars("a=${a}) - > "a=foo" |