Skip to content

Commit

Permalink
fix install.sh issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mhewedy committed Apr 28, 2020
1 parent eca8969 commit f8d78ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Create, control and connect to VirtualBox VM instances.
## Installation
For macos and linux:
```shell script
sudo /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/mhewedy/vermin/master/install.sh)"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/mhewedy/vermin/master/install.sh)"
```
For windows: comming soon

Expand Down
5 changes: 3 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,13 @@ extract_archive() {
install_vermin() {
case "${sys}" in
darwin|linux)
need_cmd sudo
need_cmd mkdir
need_cmd install

info "Installing vermin into /usr/local/bin"
mkdir -pv /usr/local/bin
install -v "${archive_dir}"/vermin /usr/local/bin/vermin
sudo mkdir -pv /usr/local/bin
sudo install -v "${archive_dir}"/vermin /usr/local/bin/vermin
;;
*)
exit_with "Unrecognized sys when installing: ${sys}" 5
Expand Down

0 comments on commit f8d78ab

Please sign in to comment.