Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Antiz96 authored Jun 27, 2022
1 parent 0ea302e commit 4c69f90
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@ Arch (or Arch based distro) users can install the [malias](https://aur.archlinux

Launch the following command in your terminal to execute the install script (requires "curl" and "sudo") :
```
curl -s https://raw.githubusercontent.com/Antiz96/Malias/main/install.sh | bash
curl -s https://raw.githubusercontent.com/Antiz96/malias/main/install.sh | bash
```

#### Update

Simply re-execute the install script (requires "curl" and "sudo") :
```
curl -s https://raw.githubusercontent.com/Antiz96/Malias/main/install.sh | bash
curl -s https://raw.githubusercontent.com/Antiz96/malias/main/install.sh | bash
```

#### Uninstalling

Launch the following command in your terminal to execute the uninstall script :
```
curl -s https://raw.githubusercontent.com/Antiz96/Malias/main/uninstall.sh | bash
curl -s https://raw.githubusercontent.com/Antiz96/malias/main/uninstall.sh | bash
```

## Usage
Expand Down
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

pkgname="malias"
url="https://github.com/Antiz96/Malias"
latest_release=$(curl -s https://raw.githubusercontent.com/Antiz96/Malias/main/latest_release.txt)
url="https://github.com/Antiz96/malias"
latest_release=$(curl -s https://raw.githubusercontent.com/Antiz96/malias/main/latest_release.txt)

checksum=$(curl -Ls "$url"/releases/download/v"$latest_release"/sha256sum.txt)
installed=$(command -v "$pkgname")
Expand Down
9 changes: 4 additions & 5 deletions uninstall.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#!/bin/bash

pkgname="Malias"
_pkgname="malias"
url="https://github.com/Antiz96/Malias"
pkgname="malias"
url="https://github.com/Antiz96/malias"

echo -e "$pkgname is going to be uninstalled\n"

sudo rm -f /usr/local/bin/"$_pkgname" || exit 1
sudo rm -f /usr/local/share/man/man1/"$_pkgname".1.gz || exit 1
sudo rm -f /usr/local/bin/"$pkgname" || exit 1
sudo rm -f /usr/local/share/man/man1/"$pkgname".1.gz || exit 1

echo -e "$pkgname has been successfully uninstalled\nPlease, visit $url for more information"

0 comments on commit 4c69f90

Please sign in to comment.