Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
build/bin/sage-guess-package-system: Suppress error output
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Mar 5, 2020
1 parent 6807e0d commit 479c521
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions build/bin/sage-guess-package-system
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#!/usr/bin/env bash
#
# First test for user-installable package systems, then system package systems
if conda --version > /dev/null; then
if conda --version > /dev/null 2>&1; then
echo conda
elif brew --version > /dev/null; then
elif brew --version > /dev/null 2>&1; then
echo homebrew
elif emerge --version > /dev/null; then
elif emerge --version > /dev/null 2>&1; then
echo gentoo
elif apt-get --version > /dev/null; then
elif apt-get --version > /dev/null 2>&1; then
echo debian
elif yum --version > /dev/null; then
elif yum --version > /dev/null 2>&1; then
echo fedora
elif pacman --version > /dev/null; then
elif pacman --version > /dev/null 2>&1; then
echo arch
elif zypper --version > /dev/null; then
elif zypper --version > /dev/null 2>&1; then
echo opensuse
elif apk --version > /dev/null; then
elif apk --version > /dev/null 2>&1; then
echo alpine
else
case `uname -s` in
Expand Down

0 comments on commit 479c521

Please sign in to comment.