removed unneeded function
This commit is contained in:
parent
873fb2b53e
commit
b7623bcb26
1 changed files with 0 additions and 12 deletions
|
@ -32,18 +32,6 @@ sudo apt install curl git wget -y # at worst this does nothing
|
|||
|
||||
# install the fun stuff
|
||||
|
||||
# deepseek suggested to make the code to grab a file a function due to repeated use
|
||||
|
||||
install_from_url() { # I agree this will work fine
|
||||
local url=$1
|
||||
local install_cmd=$2
|
||||
local temp_file=$(mktemp)
|
||||
curl -fsSL "$url" -o "$temp_file"
|
||||
chmod 755 "$temp_file"
|
||||
eval "$install_cmd $temp_file"
|
||||
rm "$temp_file"
|
||||
}
|
||||
|
||||
# We begin with homebrew
|
||||
|
||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue