Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CiTIUS
temperaturas
Commits
9716870a
Commit
9716870a
authored
Oct 21, 2015
by
Jorge Suárez de Lis
💭
Browse files
Installer now checks if the bin can be found
parent
675ce773
Changes
1
Hide whitespace changes
Inline
Side-by-side
install.sh
View file @
9716870a
...
...
@@ -50,6 +50,17 @@ if [ "a$REPLY" != "an" ] && [ "a$REPLY" != "aN" ] ; then
cp
-f
temperaturas.desktop
"
$AUTOSTARTDIR
/"
fi
which temperaturas
>
/dev/null
if
[
$?
-ne
0
]
;
then
echo
"WARNING: The program can't be found in the PATH"
read
-n
1
-p
"Do you want me to add
$BINDIR
to your PATH automatically? (Y/n) "
if
[
"a
$REPLY
"
!=
"an"
]
&&
[
"a
$REPLY
"
!=
"aN"
]
;
then
echo
'export PATH='
$BINDIR
':$PATH'
>>
~/.bashrc
export
PATH
=
$BINDIR
:
$PATH
fi
echo
fi
if
$_ROOTMODE
;
then
echo
"Program installed for everyone"
else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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