update download link

This commit is contained in:
Teddysun 2016-08-09 18:37:02 +09:00 committed by GitHub
parent 4dde96253d
commit 8d894934d7

View File

@ -4,6 +4,7 @@
# Author: Teddysun <i@teddysun.com> # # Author: Teddysun <i@teddysun.com> #
# Intro: https://teddysun.com/245.html # # Intro: https://teddysun.com/245.html #
#==============================================================# #==============================================================#
cur_dir=/opt/unixbench
# Check System # Check System
[[ $EUID -ne 0 ]] && echo 'Error: This script must be run as root!' && exit 1 [[ $EUID -ne 0 ]] && echo 'Error: This script must be run as root!' && exit 1
@ -21,29 +22,28 @@ else
fi fi
# Create new soft download dir # Create new soft download dir
mkdir -p /opt/unixbench mkdir -p ${cur_dir}
cd /opt/unixbench cd ${cur_dir}
cur_dir=`pwd`
# Download UnixBench5.1.3 # Download UnixBench5.1.3
if [ -s UnixBench5.1.3.tgz ]; then if [ -s UnixBench5.1.3.tgz ]; then
echo "UnixBench5.1.3.tgz [found]" echo "UnixBench5.1.3.tgz [found]"
else else
echo "UnixBench5.1.3.tgz not found!!!download now..." echo "UnixBench5.1.3.tgz not found!!!download now..."
if ! wget -c http://lamp.teddysun.com/files/UnixBench5.1.3.tgz; then if ! wget -c http://dl.teddysun.com/files/UnixBench5.1.3.tgz; then
echo "Failed to download UnixBench5.1.3.tgz, please download it to ${cur_dir} directory manually and try again." echo "Failed to download UnixBench5.1.3.tgz, please download it to ${cur_dir} directory manually and try again."
exit 1 exit 1
fi fi
fi fi
tar -xzf UnixBench5.1.3.tgz tar -zxvf UnixBench5.1.3.tgz && rm -f UnixBench5.1.3.tgz
cd UnixBench/ cd UnixBench/
#Run unixbench #Run unixbench
make make
./Run ./Run
echo '' echo
echo '' echo
echo "======= Script description and score comparison completed! ======= " echo "======= Script description and score comparison completed! ======= "
echo '' echo
echo '' echo