Ticket #18379: select.sh.diff
File select.sh.diff, 704 bytes (added by lperry (Perry Lee), 16 years ago) |
---|
-
select.sh
73 73 # list all (currently) available versions 74 74 list_version() { 75 75 echo "Available versions:" 76 echo $(ls -1 ${CONFPATH} | grep - v base)76 echo $(ls -1 ${CONFPATH} | grep -Ev '(base|current)') 77 77 } 78 78 79 79 # list the currently selected version … … 87 87 88 88 # test if a particular version is available 89 89 version_is_valid() { 90 for version in $(ls -1 ${CONFPATH} | grep - v base); do90 for version in $(ls -1 ${CONFPATH} | grep -Ev '(base|current)'); do 91 91 if [ "${1}" == "${version}" ]; then 92 92 return 0 93 93 fi