diff --git a/debian/postrm b/debian/postrm index 6c4495f..45d672f 100644 --- a/debian/postrm +++ b/debian/postrm @@ -1,5 +1,5 @@ #!/bin/bash -if [[ "$(file /usr/bin/up)" =~ "symbolic link to /usr/bin/update" ]]; then +if [[ -L "/usr/bin/up" ]]; then rm -rf /usr/bin/up else echo "It looks like your '/usr/bin/up' file isn't a symbolic link to '/usr/bin/update', so it hasn't been removed. If you stil want to remove it, you can do so with: sudo rm -f /usr/bin/up" diff --git a/update b/update index a64a56d..c2d1e0b 100755 --- a/update +++ b/update @@ -87,7 +87,7 @@ function status() { function internet_check() { if ! command -v wget &>/dev/null; then error "\`wget\` isn't installed! wget is required to perform connection tests. Please install wget." - if ! wget --spider "https://github.com" &>/dev/null; then + elif ! wget --spider "https://github.com" &>/dev/null; then error "I tried to contact ${BLUE}${BOLD}https://github.com${LIRED} but it did not respond! Check your internet connection!" fi }