Your Name 3 years ago
parent
commit
5c46e8ef5d
1 changed files with 3 additions and 5 deletions
  1. 3 5
      upload_mega.sh

+ 3 - 5
upload_mega.sh

@@ -136,10 +136,11 @@ sleep 1
 echo "Done."
 
 echo -e "\n\e[95mMake bootstrap_v.txt:\e[0m"
-Raw_date="`date +%d%m%Y`"
+Raw_date="`date +%d.%m.%Y`"
 cat <<'EOF'>> bootstrap_v.txt
 Bootstrap : XXXX
-Compressed by :  tar / xz
+Compressed with :  tar / xz
+Link :
 EOF
 sed -i -e "s/XXXX/$Raw_date/g" bootstrap_v.txt
 echo "Done."
@@ -175,7 +176,6 @@ cd /home/$USER
 echo -e "\n\e[95mUpload files to server :\e[0m"
 
 if [ -f bootstrap_v.txt ];then ftp_file=bootstrap_v.txt && ftp_loop ;fi
-#if [ -f bootstrap.tar.xz ];then ftp_file=bootstrap.tar.xz && ftp_loop ;fi
 if [ -f bootstrap.md5 ];then ftp_file=bootstrap.md5 && ftp_loop ;fi
 
 if ! [ -d /tmp/bootstrap ]; then mkdir /tmp/bootstrap ;fi
@@ -187,7 +187,6 @@ cp -v bootstrap.md5 /tmp/bootstrap/bootstrap/
 sleep 5
 sudo umount /tmp/bootstrap
 
-
 freeze_off
 echo -e "\n\e[92mUpload Done ...\n\e[0m"
 }
@@ -258,4 +257,3 @@ sudo mv /usr/local/bin/okcashd_old /usr/local/bin/okcashd | true
 fi
 fi
 echo ""
-