carbs

Cem's Auto Rice Bootstrapping Scripts
git clone git://git.ckyln.com/carbs.git
Log | Files | Refs | README | LICENSE

commit 6438a41115b00db2ef7ee85e019828041768f57c
parent c9ff417b99fde5c8bcaeb14396ff69215c065454
Author: Cem Keylan <cem@ckyln.com>
Date:   Tue,  1 Oct 2019 14:26:05 +0300

use if statement

Diffstat:
Mcarbs | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/carbs b/carbs @@ -148,8 +148,11 @@ basedevel-openrc () { } installyaybin() {\ - [ -d /etc/init.d ] || basedevel-openrc - sudo pacman -S --noconfirm --needed base-devel || die 'Could not install base-devel' + if [ -d /etc/init.d ]; then + basedevel-openrc + else + sudo pacman -S --noconfirm --needed base-devel || die 'Could not install base-devel' + fi cd /tmp dir=$(mktemp -d) cd $dir