ExoRepo/src/ExoRepo/Brew.class.st

21 lines
651 B
Smalltalk

Class {
#name : #Brew,
#superclass : #Object,
#category : #ExoRepo
}
{ #category : #accessing }
Brew class >> install [
"This is a preliminary starting installation script that is not working.
Dependencies and sudo access are not managed here.
For example, doing 'sudo -S base-devel' on Arch based systems or
'brew intall gcc' is yet not managed here."
Smalltalk os isWindows ifTrue: [ ^ nil ].
OSSUnixSubprocess new
shellCommand: '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"';
redirectStdout;
runAndWaitOnExitDo: [ :command :outString |
^ outString
].
]