Advertisement
Justman10000

UltimateFlarumDeleter

Feb 10th, 2022
811
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. reset
  2.  
  3. echo "UltimateFlarumDeleter by Justman10000"
  4. echo "This is under the GNU General Public License v3.0"
  5.  
  6. sleep 2
  7.  
  8. clear
  9.  
  10. echo "Where is Flarum installed?"
  11. read WhereInstall
  12.  
  13. echo "Unnecessary files are removed..."
  14.  
  15. if ! [ $WhereInstall ]; then
  16.     echo "This must be provided"
  17.     sleep 2
  18.  
  19.     bash UltimateFlarumDeleter.sh
  20. fi
  21.  
  22. if [ -d vendor ]; then
  23.  
  24.     if [ -f $WhereInstall/vendor/*/*/*.md ]; then
  25.         rm -r vendor/*/*/*.md
  26.     fi
  27.    
  28.     if [ -f $WhereInstall/vendor/*/*/LICENSE ]; then
  29.         rm -r vendor/*/*/LICENSE
  30.     fi
  31.  
  32. fi
  33.  
  34. echo "Removed unnecessary files successfully!"
  35. sleep 2
  36.  
  37. bash UltimateFlarumDeleter.sh
Advertisement
RAW Paste Data Copied
Advertisement