mirror of
https://github.com/CosmicScale/PSBBN-Definitive-English-Patch.git
synced 2025-02-11 02:28:51 +01:00
Setup script modified to work on live USBs
This commit is contained in:
parent
b04097b661
commit
ba7c65d351
18
01-Setup.sh
18
01-Setup.sh
@ -13,8 +13,22 @@ echo
|
||||
echo " This script installs all dependencies required for the 'PSBBN Installer' and 'Game Installer'."
|
||||
echo " It must be run first."
|
||||
echo
|
||||
echo "Press any key to continue..."
|
||||
read -n 1 -s
|
||||
read -p " Press any key to continue..."
|
||||
echo
|
||||
|
||||
# Path to the sources.list file
|
||||
SOURCES_LIST="/etc/apt/sources.list"
|
||||
|
||||
# Check if the file exists
|
||||
if [[ -f "$SOURCES_LIST" ]]; then
|
||||
# Remove the "deb cdrom" line and store the result
|
||||
if grep -q 'deb cdrom' "$SOURCES_LIST"; then
|
||||
sudo sed -i '/deb cdrom/d' "$SOURCES_LIST"
|
||||
echo "'deb cdrom' line has been removed from $SOURCES_LIST."
|
||||
else
|
||||
echo "No 'deb cdrom' line found in $SOURCES_LIST."
|
||||
fi
|
||||
fi
|
||||
|
||||
# Update package list and install necessary packages
|
||||
sudo apt update && sudo apt install -y axel imagemagick xxd python3-venv python3-pip nodejs npm
|
||||
|
Loading…
x
Reference in New Issue
Block a user