-
-
Save anonymous/4dcba93d89705cae1b11 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desktop = ENV['HOME'] + '/desktop' | |
Dir.chdir desktop + '/pinGen' | |
begin | |
runtill = IO.readlines("settings.txt")[0].to_i | |
rescue | |
puts "Error, cannot load data from settings.txt."; sleep 4; exit | |
end | |
if !runtill.is_a? Integer || runtill.nil? || runtill.empty? # I also tried if not runtill... didn't work | |
runtill = 100 | |
puts "\nruntill was edited" | |
end | |
puts "END" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment