info_date=${tmp::11}
type=${info_date: -1}
info_date=${info_date::10}
+ info_sec=$(date -d @$info_date +%s)
# debug
#e $(( $(stat -c%Y /b/ds/brc) - $(date -d @$info_date +%s) ))
- if (( $(stat -c%Y /b/ds/brc) > $(date -d @$info_date +%s) )); then
+ if (( $(stat -c%Y /b/ds/brc) > info_sec || $(stat -c%Y /b/ds/.bashrc) > info_sec )); then
old=true
fi
else
- tmp=$(command ssh -t "${args[@]}" "$remote" "if test -e /p/sshinfo; then echo yes; fi") || return
+ # use this weird yes thing to ensure we know ssh succeeded
+ tmp=$(command ssh "${args[@]}" "$remote" "if test -e /p/sshinfo; then echo yes; fi") || return
if [[ $tmp == yes ]]; then
type=a
else