Changeset 138


Ignore:
Timestamp:
Dec 28, 2017, 4:09:46 PM (3 years ago)
Author:
g7moreau
Message:
  • Less local -r !
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tssh/tssh

    r137 r138  
    124124   do
    125125      local mode=${default_mode}
    126       local -r last_char="${host: -1}"
     126      local last_char="${host: -1}"
    127127      if [ "${last_char}" == "-" -o "${last_char}" == "+" ]
    128128      then
     
    132132
    133133      # short host without login part if any
    134       local -r justhost=${host#*@}
     134      local justhost=${host#*@}
    135135     
    136136      cluster=$(grep "^${justhost}\b" ${HOME}/.csshrc | cut -f 2 -d '=')
     
    196196   fi
    197197
    198    local -r session=$(shuf -n 1 /usr/share/dict/words | tr -cd "[:alpha:]")
     198   session=$(shuf -n 1 /usr/share/dict/words | tr -cd "[:alpha:]")
    199199
    200200   IFS=$'\n' host=($(cat "/tmp/${base_path}/${f}"))
Note: See TracChangeset for help on using the changeset viewer.