Script name
This commit is contained in:
parent
7a1637daeb
commit
00b406144c
|
@ -628,7 +628,8 @@ function mesh_tox_node {
|
||||||
chroot "$rootdir" apt-get -y install libconfig9 libconfig-dev
|
chroot "$rootdir" apt-get -y install libconfig9 libconfig-dev
|
||||||
|
|
||||||
|
|
||||||
TEMP_SCRIPT=/tmp/fbtmp37272.sh
|
TEMP_SCRIPT_NAME=fbtmp37272.sh
|
||||||
|
TEMP_SCRIPT=/tmp/$TEMP_SCRIPT_NAME
|
||||||
echo '#!/bin/bash' > $TEMP_SCRIPT
|
echo '#!/bin/bash' > $TEMP_SCRIPT
|
||||||
echo "mkdir -p $INSTALL_DIR" >> $TEMP_SCRIPT
|
echo "mkdir -p $INSTALL_DIR" >> $TEMP_SCRIPT
|
||||||
echo "git clone $TOXCORE_REPO $INSTALL_DIR/toxcore" >> $TEMP_SCRIPT
|
echo "git clone $TOXCORE_REPO $INSTALL_DIR/toxcore" >> $TEMP_SCRIPT
|
||||||
|
@ -646,7 +647,7 @@ function mesh_tox_node {
|
||||||
cp $TEMP_SCRIPT $rootdir/root/
|
cp $TEMP_SCRIPT $rootdir/root/
|
||||||
|
|
||||||
SECONDS=0
|
SECONDS=0
|
||||||
chroot "$rootdir" $TEMP_SCRIPT
|
chroot "$rootdir" $TEMP_SCRIPT_NAME
|
||||||
if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
duration=$SECONDS
|
duration=$SECONDS
|
||||||
echo $"Toxcore compile failed at $(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed."
|
echo $"Toxcore compile failed at $(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed."
|
||||||
|
|
Loading…
Reference in New Issue