Skip to content

Commit

Permalink
Refactor install.sh to update installation process and fix version fe…
Browse files Browse the repository at this point in the history
…tching
  • Loading branch information
Thavarshan committed Oct 6, 2024
1 parent 8e125a8 commit ff0430d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,18 @@ PHP 8.1.1
To **install** or **update** phpvm, run the following command using either `curl` or `wget`:

```sh
curl -o- https://raw.githubusercontent.com/Thavarshan/phpvm/0.0.1/bin/install.sh | bash
curl -o- https://raw.githubusercontent.com/Thavarshan/phpvm/main/bin/install.sh | bash
```

```sh
wget -qO- https://raw.githubusercontent.com/Thavarshan/phpvm/0.0.1/bin/install | bash
wget -qO- https://raw.githubusercontent.com/Thavarshan/phpvm/main/bin/install | bash
```

This script clones the `phpvm` repository into `~/.phpvm` and attempts to add the following lines to your profile (`~/.bashrc`, `~/.zshrc`, or `~/.profile`):

```sh
export PHPVM_DIR="$HOME/.phpvm"
[ -s "$PHPVM_DIR/index.js" ] && \. "$PHPVM_DIR/index.js" # This loads phpvm
[[ -s "$PHPVM_DIR/index.js" ]] && export PATH="$PHPVM_DIR/bin:$PATH" && node "$PHPVM_DIR/index.js"
```

### Verify Installation
Expand All @@ -106,7 +106,7 @@ Then add the following lines to your shell's profile (`~/.bashrc`, `~/.zshrc`, e

```sh
export PHPVM_DIR="$HOME/.phpvm"
[ -s "$PHPVM_DIR/index.js" ] && \. "$PHPVM_DIR/index.js" # This loads phpvm
[[ -s "$PHPVM_DIR/index.js" ]] && export PATH="$PHPVM_DIR/bin:$PATH" && node "$PHPVM_DIR/index.js"
```

### Manual Update
Expand Down Expand Up @@ -233,7 +233,7 @@ And remove the following lines from your shell's profile:

```sh
export PHPVM_DIR="$HOME/.phpvm"
[ -s "$PHPVM_DIR/index.js" ] && \. "$PHPVM_DIR/index.js" # This loads phpvm
[[ -s "$PHPVM_DIR/index.js" ]] && export PATH="$PHPVM_DIR/bin:$PATH" && node "$PHPVM_DIR/index.js"
```

## Troubleshooting
Expand Down

0 comments on commit ff0430d

Please sign in to comment.