Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
ac85e06f
Unverified
Commit
ac85e06f
authored
Sep 17, 2019
by
Massimiliano Pippi
Committed by
GitHub
Sep 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not fail if install folder is not in PATH (#410)
parent
00eee5c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
install.sh
install.sh
+5
-5
No files found.
install.sh
View file @
ac85e06f
...
...
@@ -172,14 +172,14 @@ testVersion() {
set
+e
CLI
=
"
$(
which
$PROJECT_NAME
)
"
if
[
"
$?
"
=
"1"
]
;
then
fail
"
$PROJECT_NAME
not found. Did you add "
$LBINDIR
" to your "
'$PATH?'
fi
if
[
$CLI
!=
"
$LBINDIR
/
$PROJECT_NAME
"
]
;
then
echo
"
$PROJECT_NAME
not found. You might want to add "
$LBINDIR
" to your "
'$PATH'
elif
[
$CLI
!=
"
$LBINDIR
/
$PROJECT_NAME
"
]
;
then
fail
"An existing
$PROJECT_NAME
was found at
$CLI
. Please prepend "
$LBINDIR
" to your "
'$PATH'
" or remove the existing one."
fi
set
-e
CLI_VERSION
=
$(
$PROJECT_NAME
version
)
echo
"
$CLI_VERSION
installed successfully"
CLI_VERSION
=
$(
$
LBINDIR
/
$
PROJECT_NAME
version
)
echo
"
$CLI_VERSION
installed successfully
in
$LBINDIR
"
}
...
...
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