Code Sample |
function dlonly() if myfile then local dirname=fltk.fl_dir_chooser("Save to...",nil,nil) if dirname and fltk.fl_filename_isdir(dirname)~=0 then Fl:check() os.execute(terminal..[[ -title "Downloading ]].. myfile.title..[[" -e sh -c "unset DISPLAY && cd ]]..dirname.. [[ && wget ]]..mirror..myfile.location..[[/]]..myfile.title.. [[{.info,.md5.txt,}]]..[[ && md5sum -c ]]..myfile.title.. [[.md5.txt && echo Press \"Enter\" to continue && read"]]) end end end |