installbedrockofficial.sh 831 B

123456789101112131415161718192021222324252627282930313233
  1. ##########
  2. ##########
  3. ##########
  4. ##########
  5. ## bedrock - official installer
  6. read -p "enter the name of your new distro: " DISTRONAME
  7. echo $DISTRONAME > $WITCH/config.base.txt #1st line
  8. METADISTRO=BEDROCK
  9. echo $METADISTRO >> $WITCH/config.base.txt #2nd line
  10. # Add ARCH and PACKAGEMGR!!!
  11. echo "======================"
  12. DISTRONAME=$(sed -n '1p' $WITCH/config.base.txt)
  13. METADISTRO=$(sed -n '2p' $WITCH/config.base.txt)
  14. ARCH=$(sed -n '3p' $WITCH/config.base.txt)
  15. PACKAGEMGR=$(sed -n '4p' $WITCH/config.base.txt)
  16. echo "DISTRONAME: $DISTRONAME"
  17. echo "METADISTRO: $METADISTRO"
  18. echo "ARCH: $ARCH"
  19. echo "PACKAGEMGR: $PACKAGEMGR"
  20. echo "======================"
  21. sleep 1
  22. #not sure if any of that^ is necessary for this method.
  23. git clone https://github.com/paradigm/bedrocklinux-installer
  24. cd bedrocklinux-installer
  25. ./bedrocklinux-installer