Newer
Older
M5StickCPlus_FactoryTest2022 / DeleteAndResetAll.sh
@motoki miura motoki miura on 7 Jun 2022 542 bytes all reset
#!/bin/bash

echo "======= DELETE AND RESET ALL =========="
echo "FactoryTest2022 フォルダ・SampleSrcフォルダをすべて削除し、"
echo "新しくgit cloneします。"
echo -n "本当に全部消して、再構築しても、よいですか? (y/n) > "
read input 
if [[ "$input" == "y" ]]; then
  cd ..
  rm -fr M5StickCPlus_FactoryTest2022
  sleep 1
  git clone https://git.istlab.info/git/miura250/M5StickCPlus_FactoryTest2022.git
  sleep 1
  cd M5StickCPlus_FactoryTest2022
else
  echo "キャンセルしました"
fi