diff --git a/writelto b/writelto index 6fdf6c0..f90d82c 100755 --- a/writelto +++ b/writelto @@ -16,7 +16,7 @@ LTO_LOGS="${LTO_INDEX_DIR}" unset VERSION if [[ $(dirname $(which "${0}")) = "/usr/local/bin" || $(dirname $(which "${0}")) = "${HOME}/.linuxbrew/bin" ]] ; then - VERSION=$(TMP=$(brew info ltopers | grep -Eo "/ltopers/.* \(") ; echo ${TMP:9:(${#TMP}-11)}) + VERSION=$(TMP=$(brew info ltopers | grep ".*\*$" | grep -Eo "/ltopers/.* \(") ; echo ${TMP:9:(${#TMP}-11)}) fi # no .DS_Store onto external storage