Exit rather than return
This commit is contained in:
parent
39302bd960
commit
c761ea62e6
|
@ -289,7 +289,7 @@ function compile_toxcore {
|
||||||
echo $'Compiling toxcore' >> $INSTALL_LOG
|
echo $'Compiling toxcore' >> $INSTALL_LOG
|
||||||
if [ ! -d $INSTALL_DIR/toxcore ]; then
|
if [ ! -d $INSTALL_DIR/toxcore ]; then
|
||||||
echo $"$INSTALL_DIR/toxcore not found" >> $INSTALL_LOG
|
echo $"$INSTALL_DIR/toxcore not found" >> $INSTALL_LOG
|
||||||
return
|
exit 63856
|
||||||
fi
|
fi
|
||||||
cd $INSTALL_DIR/toxcore
|
cd $INSTALL_DIR/toxcore
|
||||||
SECONDS=0
|
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 $"Toxcore compile failed at $(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed." >> $INSTALL_LOG
|
||||||
echo $'Unable to make toxcore' >> $INSTALL_LOG
|
echo $'Unable to make toxcore' >> $INSTALL_LOG
|
||||||
echo $'See $INSTALL_DIR/make_toxcore.txt' >> $INSTALL_LOG
|
echo $'See $INSTALL_DIR/make_toxcore.txt' >> $INSTALL_LOG
|
||||||
return
|
exit 73835
|
||||||
fi
|
fi
|
||||||
rm $INSTALL_DIR/configure_toxcore.txt
|
rm $INSTALL_DIR/configure_toxcore.txt
|
||||||
rm $INSTALL_DIR/make_toxcore.txt
|
rm $INSTALL_DIR/make_toxcore.txt
|
||||||
|
@ -312,7 +312,7 @@ function compile_toxcore {
|
||||||
|
|
||||||
if [ ! -f /usr/local/bin/tox-bootstrapd ]; then
|
if [ ! -f /usr/local/bin/tox-bootstrapd ]; then
|
||||||
echo $"File not found /usr/local/bin/tox-bootstrapd" >> $INSTALL_LOG
|
echo $"File not found /usr/local/bin/tox-bootstrapd" >> $INSTALL_LOG
|
||||||
return
|
exit 37825
|
||||||
fi
|
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
|
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
|
if [ ! -d $INSTALL_DIR/toxic ]; then
|
||||||
echo $"$INSTALL_DIR/toxic not found" >> $INSTALL_LOG
|
echo $"$INSTALL_DIR/toxic not found" >> $INSTALL_LOG
|
||||||
return
|
exit 347835
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $INSTALL_DIR/toxic
|
cd $INSTALL_DIR/toxic
|
||||||
|
|
Loading…
Reference in New Issue