X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=brc2;h=7c33bea3251ebbd08cea977f6b72dff156be36d2;hp=20780faa046aa30d3d11bf50ac1eaa33796f0e93;hb=386ec3bb9a0a35be10431d3da9fa21a1d9bc29e2;hpb=12e7a0f3de4f4f1b1f8e56e7cbe2e972027e0a42 diff --git a/brc2 b/brc2 index 20780fa..7c33bea 100644 --- a/brc2 +++ b/brc2 @@ -817,13 +817,15 @@ sl() { 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