Skip to content

Commit

Permalink
fix file name of download files
Browse files Browse the repository at this point in the history
  • Loading branch information
quericy committed Nov 28, 2016
1 parent 41ea22e commit 8df62cf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions one-key-ikev2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ function pre_install(){

# Download strongswan
function download_files(){
strongswan_file='strongswan-5.5.1.tar.gz'
strongswan_version='strongswan-5.5.1'
strongswan_file="$strongswan_version.tar.gz"
if [ -f $strongswan_file ];then
echo -e "$strongswan_file [$(__green "found")]"
else
Expand All @@ -221,9 +222,9 @@ function download_files(){
exit 1
fi
fi
tar xzf strongswan*.tar.gz
tar xzf $strongswan_file
if [ $? -eq 0 ];then
cd $cur_dir/strongswan-*/
cd $cur_dir/$strongswan_version/
else
echo ""
echo "Unzip $strongswan_file failed! Please visit https://quericy.me/blog/699 and contact."
Expand Down

0 comments on commit 8df62cf

Please sign in to comment.