We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9646ae0 commit ea7645dCopy full SHA for ea7645d
install_rubikpi3.sh
@@ -15,8 +15,15 @@ apt-get update -y
15
16
17
# TODO: Remove legacy
18
-sed -i "/$HOST_ENTRY/d" /etc/hosts || true
19
-sed -i '/apt.rubikpi.ai ppa main/d' /etc/apt/sources.list || true
+if grep -q "$HOST_ENTRY" /etc/hosts; then
+ echo "Removing legacy host entry from /etc/hosts"
20
+ sed -i "/$HOST_ENTRY/d" /etc/hosts
21
+fi
22
+
23
+if grep -q "apt.rubikpi.ai ppa main" /etc/apt/sources.list; then
24
+ echo "Removing legacy repo entry from /etc/apt/sources.list"
25
+ sed -i '/apt.rubikpi.ai ppa main/d' /etc/apt/sources.list
26
27
28
if ! grep -q "^[^#]*$REPO_ENTRY" /etc/apt/sources.list; then
29
echo "$REPO_ENTRY" | tee -a /etc/apt/sources.list >/dev/null
0 commit comments