Commit 9716870a authored by Jorge Suárez de Lis's avatar Jorge Suárez de Lis 💭
Browse files

Installer now checks if the bin can be found

parent 675ce773
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment