diff --git a/install_mecab_php-mecab.sh b/install_mecab_php-mecab.sh index 9eda7dd..8fc14e5 100755 --- a/install_mecab_php-mecab.sh +++ b/install_mecab_php-mecab.sh @@ -14,7 +14,7 @@ OUTPUT=$(php --version) LONGVERSION=$(echo $OUTPUT | cut -d ' ' -f2 | cut -d '-' -f1) -SHORTVERSION=${LONGVERSION%??} +SHORTVERSION=${LONGVERSION%.*} echo $SHORTVERSION