File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ get_bun_version () {
1515installation_check () {
1616 echo " Checking if Bun is already installed..."
1717 if command -v bun > /dev/null 2>&1 ; then
18- if bun --version | grep " $BUN_ORB_VERSION " > /dev/null 2>&1 ; then
18+ if bun --version | grep -Eq " ^ $BUN_ORB_VERSION \.* " > /dev/null 2>&1 ; then
1919 echo " Bun $BUN_ORB_VERSION is already installed"
2020 exit 0
2121 else
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ get_pnpm_version () {
1616installation_check () {
1717 echo " Checking if pnpm is already installed..."
1818 if command -v pnpm > /dev/null 2>&1 ; then
19- if pnpm --version | grep " $PNPM_ORB_VERSION " > /dev/null 2>&1 ; then
19+ if pnpm --version | grep -Eq " ^ $PNPM_ORB_VERSION \.* " > /dev/null 2>&1 ; then
2020 echo " pnpm $PNPM_ORB_VERSION is already installed"
2121 exit 0
2222 else
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ get_yarn_version () {
1616installation_check () {
1717 echo " Checking if YARN is already installed..."
1818 if command -v yarn > /dev/null 2>&1 ; then
19- if yarn --version | grep " $YARN_ORB_VERSION " > /dev/null 2>&1 ; then
19+ if yarn --version | grep -Eq " ^ $YARN_ORB_VERSION \.* " > /dev/null 2>&1 ; then
2020 echo " Yarn $YARN_ORB_VERSION is already installed"
2121 exit 0
2222 else
You can’t perform that action at this time.
0 commit comments