Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions tools/deps/deps_linux
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#!/usr/bin/bash

# We are going to use /etc/os-release to identify which
# Linux distribution we are currently running.
. /etc/os-release

if [[ $ID_LIKE == "debian" ]]; then
if [ -x "$(command -v apt)" ]; then
PKGMAN="apt"

packages=(
Expand Down Expand Up @@ -48,7 +44,7 @@ packages=(

function install_package() { apt-get install -y $1; }
function query_package() { dpkg -l | grep -q $1; }
elif [[ $ID == "arch" ]]; then # if [[ $ID_LIKE == "debian" ]]; then
elif [ -x "$(command -v pacman)" ]; then # if [ -x "$(command -v apt)" ]; then
PKGMAN="pacman"

packages=(
Expand Down Expand Up @@ -93,4 +89,4 @@ packages=(

function install_package() { pacman -S $1 --noconfirm; }
function query_package() { pacman -Q | grep -q $1; }
fi # elif [[ $ID == "arch" ]]; then
fi # elif [ -x "$(command -v pacman)" ]; then