Skip to content

Commit

Permalink
change to v5.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
cqsuper authored Jan 8, 2021
1 parent a448dd4 commit e2fafe5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions unixbench.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash
#==============================================================#
# Description: Unixbench script, copy from :https://raw.githubusercontent.com/teddysun/across/master/unixbench.sh, change to v5.1.5 #
# Description: Unixbench script, copy from :https://raw.githubusercontent.com/teddysun/across/master/unixbench.sh, change to v5.1.6 #
# Author: Teddysun <[email protected]> #
# Intro: https://teddysun.com/245.html #
#==============================================================#
Expand All @@ -25,17 +25,17 @@ fi
mkdir -p ${cur_dir}
cd ${cur_dir}

# Download UnixBench5.1.5
if [ -s UnixBench-5.1.5.tar.gz ]; then
echo "UnixBench-5.1.5.tar.gz [found]"
# Download UnixBench5.1.6
if [ -s UnixBench-5.1.6.tar.gz ]; then
echo "UnixBench-5.1.6.tar.gz [found]"
else
echo "UnixBench-5.1.5.tar.gz not found!!!download now..."
if ! wget -c https://github.com/aliyun/byte-unixbench/releases/download/v5.1.5/UnixBench-5.1.5.tar.gz; then
echo "Failed to download UnixBench-5.1.5.tar.gz, please download it to ${cur_dir} directory manually and try again."
echo "UnixBench-5.1.6.tar.gz not found!!!download now..."
if ! wget -c https://github.com/aliyun/byte-unixbench/releases/download/v5.1.6/UnixBench-5.1.6.tar.gz; then
echo "Failed to download UnixBench-5.1.6.tar.gz, please download it to ${cur_dir} directory manually and try again."
exit 1
fi
fi
tar -zxvf UnixBench-5.1.5.tar.gz && rm -f UnixBench-5.1.5.tar.gz
tar -zxvf UnixBench-5.1.6.tar.gz && rm -f UnixBench-5.1.6.tar.gz
cd UnixBench/

#Run unixbench
Expand Down

0 comments on commit e2fafe5

Please sign in to comment.