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
c48f07f8
"src/vscode:/vscode.git/clone" did not exist on "6bceaea3fe5937c4ea5e833a402b24492860d0f7"
Commit
c48f07f8
authored
Jul 26, 2023
by
Jeffrey Morgan
Browse files
app: dont advance on error
parent
dc642aa0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
app/src/app.tsx
app/src/app.tsx
+9
-4
app/src/install.ts
app/src/install.ts
+1
-6
No files found.
app/src/app.tsx
View file @
c48f07f8
...
@@ -51,10 +51,15 @@ export default function () {
...
@@ -51,10 +51,15 @@ export default function () {
<
div
className
=
'mx-auto'
>
<
div
className
=
'mx-auto'
>
<
button
<
button
onClick
=
{
async
()
=>
{
onClick
=
{
async
()
=>
{
try
{
await
install
()
await
install
()
setStep
(
Step
.
FINISH
)
}
catch
(
e
)
{
console
.
error
(
'
could not install:
'
,
e
)
}
finally
{
getCurrentWindow
().
show
()
getCurrentWindow
().
show
()
getCurrentWindow
().
focus
()
getCurrentWindow
().
focus
()
setStep
(
Step
.
FINISH
)
}
}
}
}
}
className
=
'no-drag rounded-dm mx-auto w-[60%] rounded-md bg-black px-4 py-2 text-sm text-white hover:brightness-110'
className
=
'no-drag rounded-dm mx-auto w-[60%] rounded-md bg-black px-4 py-2 text-sm text-white hover:brightness-110'
>
>
...
...
app/src/install.ts
View file @
c48f07f8
...
@@ -17,10 +17,5 @@ export async function install() {
...
@@ -17,10 +17,5 @@ export async function install() {
symlinkPath
symlinkPath
)}
&& ln -F -s
${
ollama
}
${
symlinkPath
}
" with administrator privileges`
)}
&& ln -F -s
${
ollama
}
${
symlinkPath
}
" with administrator privileges`
try
{
await
exec
(
`osascript -e '
${
command
}
'`
)
await
exec
(
`osascript -e '
${
command
}
'`
)
}
catch
(
error
)
{
console
.
error
(
`cli: failed to install cli:
${
error
.
message
}
`
)
return
}
}
}
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