Skip to content

Commit

Permalink
Change codename gathering to /etc/os-release
Browse files Browse the repository at this point in the history
  • Loading branch information
iamjla committed Apr 8, 2022
1 parent 0225270 commit 5c29d11
Showing 1 changed file with 2 additions and 30 deletions.
32 changes: 2 additions & 30 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -242,21 +242,7 @@ check_forked() {
# We're Debian and don't even know it!
lsb_dist=debian
fi
dist_version="$(sed 's/\/.*//' /etc/debian_version | sed 's/\..*//')"
case "$dist_version" in
11)
dist_version="bullseye"
;;
10)
dist_version="buster"
;;
9)
dist_version="stretch"
;;
8)
dist_version="jessie"
;;
esac
dist_version="$(sed -n 's/^VERSION_CODENAME=//p' < /etc/os-release )"
fi
fi
fi
Expand Down Expand Up @@ -330,21 +316,7 @@ do_install() {
;;

debian|raspbian)
dist_version="$(sed 's/\/.*//' /etc/debian_version | sed 's/\..*//')"
case "$dist_version" in
11)
dist_version="bullseye"
;;
10)
dist_version="buster"
;;
9)
dist_version="stretch"
;;
8)
dist_version="jessie"
;;
esac
dist_version="$(sed -n 's/^VERSION_CODENAME=//p' < /etc/os-release )"
;;

centos|rhel|sles)
Expand Down

0 comments on commit 5c29d11

Please sign in to comment.