mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-30 15:19:23 +01:00
fb4f6f28ec
Resolves: #3
11 lines
221 B
Ruby
11 lines
221 B
Ruby
#!/usr/bin/env ruby
|
|
|
|
# Prompt for the whatever
|
|
print "Enter the IPFS hash/addr: "
|
|
# Get the input without \n
|
|
ipfsthing = gets.chomp
|
|
ipfsgateway = "https://ipfs.io/ipfs/"
|
|
|
|
# Output the address
|
|
puts ipfsgateway + ipfsthing
|