Skip to content
Snippets Groups Projects
Commit c761ea62 authored by Bob Mottram's avatar Bob Mottram
Browse files

Exit rather than return

parent 39302bd9
No related branches found
No related tags found
No related merge requests found
......@@ -289,7 +289,7 @@ function compile_toxcore {
echo $'Compiling toxcore' >> $INSTALL_LOG
if [ ! -d $INSTALL_DIR/toxcore ]; then
echo $"$INSTALL_DIR/toxcore not found" >> $INSTALL_LOG
return
exit 63856
fi
cd $INSTALL_DIR/toxcore
SECONDS=0
......@@ -301,7 +301,7 @@ function compile_toxcore {
echo $"Toxcore compile failed at $(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed." >> $INSTALL_LOG
echo $'Unable to make toxcore' >> $INSTALL_LOG
echo $'See $INSTALL_DIR/make_toxcore.txt' >> $INSTALL_LOG
return
exit 73835
fi
rm $INSTALL_DIR/configure_toxcore.txt
rm $INSTALL_DIR/make_toxcore.txt
......@@ -312,7 +312,7 @@ function compile_toxcore {
if [ ! -f /usr/local/bin/tox-bootstrapd ]; then
echo $"File not found /usr/local/bin/tox-bootstrapd" >> $INSTALL_LOG
return
exit 37825
fi
useradd --home-dir /var/lib/tox-bootstrapd --create-home --system --shell /sbin/nologin --comment $"Account to run Tox's DHT bootstrap daemon" --user-group tox-bootstrapd
......@@ -389,7 +389,7 @@ function compile_tox_client {
if [ ! -d $INSTALL_DIR/toxic ]; then
echo $"$INSTALL_DIR/toxic not found" >> $INSTALL_LOG
return
exit 347835
fi
cd $INSTALL_DIR/toxic
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment