From cc8e45b1286879338e1b111d4dfc4a2ea356b049 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 21 Feb 2017 20:21:30 -0800 Subject: [PATCH] [Linux] Actually install deps in arch_deps --- tasks/shell/arch_dependencies.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/tasks/shell/arch_dependencies.sh b/tasks/shell/arch_dependencies.sh index c54ea350..6c220521 100755 --- a/tasks/shell/arch_dependencies.sh +++ b/tasks/shell/arch_dependencies.sh @@ -1,4 +1,9 @@ -#!/usr/bin/env zsh +#!/usr/bin/env sh + +indirect_expand() { + eval "value=\"\${$1}\"" + echo $value +} ESSENTIAL=( "lightdm-git" "zsh", "git" "emacs-git" "autoconf" "pkg-config" "pyenv" @@ -26,3 +31,12 @@ NVIDIA=( MACBOOK=( "broadcom-wl-dkms" "pommed-light" "batterymon-clone" ) + +install_deps() { + for dependency in indirect_expand "${1-ESSENTIAL}" + do + pacaur -S $dependency --noconfirm + done +} + +install_deps "$@"