Skip to content

Commit

Permalink
Fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
quackduck committed Sep 14, 2020
1 parent 213d8f1 commit 3046961
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ WarpDrive 1.0.0
WarpDrive can be installed by running this command:

```fish
curl https://raw.githubusercontent.com/quackduck/WarpDrive/master/fish/install.fish | fish
curl -sS https://raw.githubusercontent.com/quackduck/WarpDrive/master/fish/install.fish | fish
```

and uninstalled by running this command:

```fish
curl https://raw.githubusercontent.com/quackduck/WarpDrive/master/fish/uninstall.fish | fish
curl -sS https://raw.githubusercontent.com/quackduck/WarpDrive/master/fish/uninstall.fish | fish
```

## Compatibility
Expand Down
14 changes: 9 additions & 5 deletions fish/install.fish
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
if test -d ~/WarpDrive
rm -r ~/WarpDrive
end

git clone -q --depth 1 -b (curl -sS https://raw.githubusercontent.com/quackduck/WarpDrive/master/version.txt) https://github.com/quackduck/WarpDrive.git ~/WarpDrive; or echo "An error occurred while downloading files"; exit
git clone -q --depth 1 -b (curl -sS https://raw.githubusercontent.com/quackduck/WarpDrive/master/version.txt) https://github.com/quackduck/WarpDrive.git ~/WarpDrive 2> /dev/null; or
echo "An error occurred while downloading files."; echo "Please report this error at https://github.com/quackduck/WarpDrive/issues"; exit

mkdir -p ~/.config/fish/conf.d
mkdir -p ~/.config/fish/functions
Expand All @@ -14,15 +18,15 @@ cd ~/.WarpDrive && javac WarpDrive.java && rm WarpDrive.java && cd -
if test (uname) = "Darwin"
mkdir -p /usr/local/share/man/man1
mkdir -p /usr/local/share/fish/vendor_completions.d
cp ~/WarpDrive/man/man1/wd.1 > /usr/local/share/man/man1/wd.1
cp ~/WarpDrive/fish/completion/wd.fish > /usr/local/share/fish/vendor_completions.d/wd.fish
cp ~/WarpDrive/man/man1/wd.1 /usr/local/share/man/man1/wd.1
cp ~/WarpDrive/fish/completion/wd.fish /usr/local/share/fish/vendor_completions.d/wd.fish
else
echo "Your password is needed to install the man page and fish completions for WarpDrive"
sudo fish -c "
mkdir -p /usr/local/share/man/man1
mkdir -p /usr/local/share/fish/vendor_completions.d
cp ~/WarpDrive/man/man1/wd.1 > /usr/local/share/man/man1/wd.1 # downloads man page
cp ~/WarpDrive/fish/completion/wd.fish > /usr/local/share/fish/vendor_completions.d/wd.fish"
cp ~/WarpDrive/man/man1/wd.1 /usr/local/share/man/man1/wd.1
cp ~/WarpDrive/fish/completion/wd.fish /usr/local/share/fish/vendor_completions.d/wd.fish"
end

rm -r ~/WarpDrive
Expand Down
2 changes: 1 addition & 1 deletion src/WarpDrive.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static void main(String[] args) {
" --update Update WarpDrive to the latest commit" + n +
" --help, -h Print this help message" + n +
" --version, -v Print the version of WarpDrive you have" + n +
" --check, -c Checks if a newer version is available" + n +
" --check, -c Check if a newer version is available" + n +
"Examples:" + n +
" wd" + n +
" wd dir-in-pwd" + n +
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.1.0
v1.1.1

0 comments on commit 3046961

Please sign in to comment.