Skip to content

Commit 43e43d5

Browse files
authored
Update version val (#259)
1 parent 88a8654 commit 43e43d5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/scripts/install-bun.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ get_bun_version () {
1515
installation_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

src/scripts/install-pnpm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ get_pnpm_version () {
1616
installation_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

src/scripts/install-yarn.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ get_yarn_version () {
1616
installation_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

0 commit comments

Comments
 (0)