me_cleaner 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #!/bin/bash
  2. #
  3. # Copyright (C) 2020 Leah Rowe <info@minifree.org>
  4. #
  5. # This program is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation, either version 3 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. #
  18. # This script assumes that the working directory is the
  19. # root of osboot_src or osboot git.
  20. [ "x${DEBUG+set}" = 'xset' ] && set -v
  21. set -u -e
  22. # Remove the old version that may still exist
  23. # ------------------------------------------------------------------------------
  24. printf "Downloading me_cleaner utility\n"
  25. rm -rf "me_cleaner/"
  26. # Get me_cleaner
  27. # ------------------------------------------------------------------------------
  28. # download it using git
  29. git clone https://github.com/corna/me_cleaner.git
  30. if [ ! -d "me_cleaner" ]; then
  31. printf "me_cleaner not downloaded; check network connection?\n\n"
  32. exit 1
  33. fi
  34. (
  35. # modifications are required
  36. cd "me_cleaner/"
  37. # Reset to the last commit that was tested
  38. # ------------------------------------------------------------------------------
  39. git reset --hard 43612a630c79f3bc6f2653bfe90dfe0b7b137e08
  40. )