Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
4c1dc520
Commit
4c1dc520
authored
Jul 18, 2023
by
Jeffrey Morgan
Browse files
app: create `/usr/local/bin/` if it does not exist
parent
572fc909
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
app/src/install.ts
app/src/install.ts
+3
-1
No files found.
app/src/install.ts
View file @
4c1dc520
...
...
@@ -13,7 +13,9 @@ export function installed() {
}
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
{
await
exec
(
`osascript -e '
${
command
}
'`
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment