diff --git a/bin/executable_drop b/bin/executable_drop old mode 100755 new mode 100644 index 2df93cd..f6b752b --- a/bin/executable_drop +++ b/bin/executable_drop @@ -7,7 +7,7 @@ require 'securerandom' require 'net/scp' file = Pathname.new(ARGV[0]) -new_name = SecureRandom.uuid + File.extname(file) +new_name = SecureRandom.hex(12) + File.extname(file) abort "Och komm." unless file.exist? and file.readable? url = URI.escape("https://drop.bascht.space/#{new_name}")