You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
433 B
16 lines
433 B
1 year ago
|
#!/bin/sh
|
||
|
|
||
|
if [ "$(id -u)" = "0" ]; then
|
||
|
SYSTEM="--system"
|
||
|
MSG="to all users"
|
||
|
else
|
||
|
MSG="to user $(whoami)"
|
||
|
fi
|
||
|
|
||
|
if [ -f /usr/bin/flatpak ]; then
|
||
|
/usr/bin/flatpak remote-add $SYSTEM --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||
|
/usr/bin/flatpak remote-add $SYSTEM --if-not-exists fedora oci+https://registry.fedoraproject.org
|
||
|
|
||
|
echo "Added flathub and fedoraproject flatpak repos $MSG"
|
||
|
fi
|