Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement