mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
sources.list update
This commit is contained in:
parent
7ca471bffd
commit
df8f3b1298
10
install.sh
10
install.sh
@ -136,14 +136,8 @@ chmod +x install-scripts/*
|
||||
# Path to the sources.list file
|
||||
sources_list="/etc/apt/sources.list"
|
||||
|
||||
# Check if any lines starting with "#deb-src" exist
|
||||
if grep -q "^#deb-src" "$sources_list"; then
|
||||
echo "Found lines starting with '#deb-src' in $sources_list."
|
||||
else
|
||||
# Remove the '#' from the first line starting with '#deb-src'
|
||||
echo "No lines starting with '#deb-src' found in $sources_list. Removing '#' from the first such line..."
|
||||
sudo sed -i '0,/^#deb-src/ s/^#//' "$sources_list"
|
||||
fi
|
||||
# Remove the '#' from lines starting with '#deb-src'
|
||||
sudo sed -i '/^#deb-src/ s/^# //' "$sources_list"
|
||||
|
||||
# Remove the '#' from lines starting with '#deb'
|
||||
sudo sed -i '/^#deb/ s/^# //' "$sources_list"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user