#! /usr/bin/ruby links = [ # what, where ["ruby/ptts", "crystal/ptts"] ] links.each { |pair| unless File.exists? "#{ENV["HOME"]}/public_gemini/b-logs/#{pair[1]}" `ln -sn ~/public_html/b-logs/#{pair[0]} ~/public_html/b-logs/#{pair[1]}` `ln -sn ~/public_gemini/b-logs/#{pair[0]} ~/public_gemini/b-logs/#{pair[1]}` end }