You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
printf"%s""[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc"| tee /etc/yum.repos.d/vscode.repo > /dev/null
17
+
}
18
+
19
+
code_install_install_yum() {
20
+
import_yum
21
+
yum check-update
22
+
yum install code
23
+
}
24
+
25
+
code_install_install_dnf() {
26
+
import_yum
27
+
dnf check-update
28
+
dnf install code
29
+
}
30
+
31
+
if [ -x"$(command -v apt-get)" ];then
32
+
code_install_install_apt
33
+
elif [ -x"$(command -v yum)" ];then
34
+
code_install_install_yum
35
+
elif [ -x"$(command -v dnf)" ];then
36
+
code_install_install_dnf
37
+
else
38
+
# shellcheck disable=SC2154
39
+
echo"$me: No supported package manager found to install: code">&2
0 commit comments