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

+ 3 - 5
upload_mega.sh

@@ -159,11 +159,12 @@ YYYY=`ls -l bootstrap*.0* | wc -l`
 cat <<'EOF'>> bootstrap_v.txt
 Bootstrap : XXXX
 Parts: YYYY
-Size ; ZZZZ Mo
+Size : ZZZZ Mo
 EOF
 sed -i -e "s/XXXX/$Raw_date/g" bootstrap_v.txt
 sed -i -e "s/YYYY/$YYYY/g" bootstrap_v.txt
-sed -i -e "s/ZZZZ/$split_size" bootstrap_v.txt
+split_size="${split_size%?}"
+sed -i -e "s/ZZZZ/$split_size/g" bootstrap_v.txt
 echo "Done."
 
 echo -e "\n\e[95mMd5sum Files:\e[0m"
@@ -222,9 +223,6 @@ if [ -f bootstrap_okcash ]
 then
 rm -r bootstrap_okcash
 fi
-git clone https://github.com/wareck/bootstrap_okcash.git
-cp -v bootstrap_v.txt bootstrap_okcash/
-cp -v bootstrap.*.md5 bootstrap_okcash/
 
 sleep 5
 sudo umount /tmp/bootstrap