mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
awk
This commit is contained in:
parent
d56cd49ece
commit
bedb65a39e
@ -137,10 +137,10 @@ chmod +x install-scripts/*
|
|||||||
sources_list="/etc/apt/sources.list"
|
sources_list="/etc/apt/sources.list"
|
||||||
|
|
||||||
# Remove the '#' from lines starting with '#deb-src'
|
# Remove the '#' from lines starting with '#deb-src'
|
||||||
sudo awk '/^#deb-src/ {$1 = "deb-src"} 1' "$sources_list" > "$sources_list.tmp" && sudo mv "$sources_list.tmp" "$sources_list"
|
sudo awk '/^#deb-src/ {sub(/^#/, "", $0)} {print}' "$sources_list" > "$sources_list.tmp" && sudo mv "$sources_list.tmp" "$sources_list"
|
||||||
|
|
||||||
# Remove the '#' from lines starting with '#deb'
|
# Remove the '#' from lines starting with '#deb'
|
||||||
sudo awk '/^#deb/ {$1 = "deb"} 1' "$sources_list" > "$sources_list.tmp" && sudo mv "$sources_list.tmp" "$sources_list"
|
sudo awk '/^#deb/ {sub(/^#/, "", $0)} {print}' "$sources_list" > "$sources_list.tmp" && sudo mv "$sources_list.tmp" "$sources_list"
|
||||||
|
|
||||||
sudo apt update
|
sudo apt update
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user