aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrun6
1 files changed, 3 insertions, 3 deletions
diff --git a/run b/run
index 38d0f0e..36bcf1d 100755
--- a/run
+++ b/run
@@ -23,9 +23,9 @@ end
if arg != "" then
if arg == "all" then
#run all
- days = Dir.entries('.').select{|d|d=~/^day/}
- days.each do |day|
- run day
+ days = Dir.entries('.').select{|d|d=~/^day/}.map{|d|d.gsub(/day/, '').to_i}
+ days.sort.each do |day|
+ run "day%02d" % day
end
else
#run specified day