diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2020-11-04 12:59:35 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2020-11-04 12:59:35 +0100 |
| commit | adc1ec0e07fafba94dccd12ceeca21cb5dce3a0b (patch) | |
| tree | ecb19df21825361e8fa08d9f3b1f4ab6680060f2 /scripts | |
| parent | 1123696b7f613fbf692e5e8ceadf21bf121282fb (diff) | |
| download | mullvadvpn-adc1ec0e07fafba94dccd12ceeca21cb5dce3a0b.tar.xz mullvadvpn-adc1ec0e07fafba94dccd12ceeca21cb5dce3a0b.zip | |
Fix PR feedback
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/install-mullvad | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/install-mullvad b/scripts/install-mullvad index 42a9c5a338..7446fa3c8f 100755 --- a/scripts/install-mullvad +++ b/scripts/install-mullvad @@ -25,7 +25,7 @@ chmod 755 "$cache_dir" gpg_cmd=$(command -v gpg2 || command -v gpg) # Detect operating system and package manager -if [[ "$(uname -s)" == "Darwin" && -f /usr/sbin/installer ]]; then +if [[ "$(uname -s)" == "Darwin" ]] && command -v installer; then pkg_manager="macOS" pkg_filename="MullvadVPN-${version}.pkg" elif command -v apt > /dev/null 2>&1; then @@ -43,7 +43,7 @@ echo ">>> Detected $pkg_manager as package manager" # Download any missing installer/signature if [[ ! -f "$pkg_filename" ]]; then url="$URL_BASE/$version/$pkg_filename" - echo ">>> Downloading RPM from $url" + echo ">>> Downloading installer from $url" curl -O --fail "$url" fi if [[ ! -f "$pkg_filename.asc" ]]; then |
