mirror of
https://github.com/coder/code-server.git
synced 2024-12-28 20:25:54 +03:00
feat: install script support arch-like (#5757)
This commit is contained in:
parent
f56ce5b66d
commit
ff8ea36b27
@ -482,7 +482,7 @@ os() {
|
|||||||
# - amzn, centos, rhel, fedora, ... -> fedora
|
# - amzn, centos, rhel, fedora, ... -> fedora
|
||||||
# - opensuse-{leap,tumbleweed} -> opensuse
|
# - opensuse-{leap,tumbleweed} -> opensuse
|
||||||
# - alpine -> alpine
|
# - alpine -> alpine
|
||||||
# - arch -> arch
|
# - arch, manjaro, endeavouros, ... -> arch
|
||||||
#
|
#
|
||||||
# Inspired by https://github.com/docker/docker-install/blob/26ff363bcf3b3f5a00498ac43694bf1c7d9ce16c/install.sh#L111-L120.
|
# Inspired by https://github.com/docker/docker-install/blob/26ff363bcf3b3f5a00498ac43694bf1c7d9ce16c/install.sh#L111-L120.
|
||||||
distro() {
|
distro() {
|
||||||
@ -496,7 +496,7 @@ distro() {
|
|||||||
. /etc/os-release
|
. /etc/os-release
|
||||||
if [ "${ID_LIKE-}" ]; then
|
if [ "${ID_LIKE-}" ]; then
|
||||||
for id_like in $ID_LIKE; do
|
for id_like in $ID_LIKE; do
|
||||||
case "$id_like" in debian | fedora | opensuse)
|
case "$id_like" in debian | fedora | opensuse | arch)
|
||||||
echo "$id_like"
|
echo "$id_like"
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user