mirror of
https://github.com/ollama/ollama.git
synced 2025-06-28 15:31:07 +02:00
app: create /usr/local/bin/
if it does not exist
This commit is contained in:
parent
572fc9099f
commit
4c1dc52083
@ -13,7 +13,9 @@ export function installed() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function install() {
|
export async function install() {
|
||||||
const command = `do shell script "ln -F -s ${ollama} ${symlinkPath}" with administrator privileges`
|
const command = `do shell script "mkdir -p ${path.dirname(
|
||||||
|
symlinkPath
|
||||||
|
)} && ln -F -s ${ollama} ${symlinkPath}" with administrator privileges`
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await exec(`osascript -e '${command}'`)
|
await exec(`osascript -e '${command}'`)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user