diff --git a/bin/startRuby b/bin/startRuby index c6cd48d..2cc7103 100755 --- a/bin/startRuby +++ b/bin/startRuby @@ -4,7 +4,17 @@ # Host jdgb gb=https://www.yatex.org/gitbucket/ -repo=ssh://git@jdgb/JD2022student/Ruby.git +user=`logname` +user=$USER +case "$user" in + j21??) ryear=2021 ;; + j22??) ryear=2022 ;; + #j[23][0-9][0-9][0-9]) + # ryear=20`expr "$user" : 'j\(..\)..'` ;; + *) # We cannot use "date" command because of its option incompatibility + ryear=`ruby -e 'print (Time.now-120*24*3600).strftime("%Y")'` ;; +esac +repo=ssh://git@jdgb/JD${ryear}student/Ruby.git edom=itl.koeki-u.ac.jp trashbin=$HOME/Trash trashmsg="がサーバ上の最新版と食い違ったので