Skip to content

Commit

Permalink
support Ubuntu 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Apr 30, 2024
1 parent b24015e commit aa7ab7d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ jobs:
- "kalilinux/kali-last-release:latest"
- ubuntu:devel
- ubuntu:latest
- ubuntu:24.04
- ubuntu:22.04
- ubuntu:20.04
- ubuntu:18.04
Expand Down
12 changes: 10 additions & 2 deletions fast-apt-mirror.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,16 @@ function get_current_mirror() {
local current_mirror_url=''
local current_mirror_cfgfile
case $dist_name in
debian) current_mirror_cfgfile='/etc/apt/sources.list.d/debian.sources' ;;
ubuntu|pop) current_mirror_cfgfile='/etc/apt/sources.list.d/system.sources' ;;
debian)
current_mirror_cfgfile='/etc/apt/sources.list.d/debian.sources'
;;
ubuntu|pop)
if [[ -f /etc/apt/sources.list.d/ubuntu.sources ]]; then # Ubuntu 24+
current_mirror_cfgfile='/etc/apt/sources.list.d/ubuntu.sources'
else
current_mirror_cfgfile='/etc/apt/sources.list.d/system.sources'
fi
;;
esac
current_mirror_url=$(read_main_mirror_from_deb822_file "$current_mirror_cfgfile")

Expand Down

0 comments on commit aa7ab7d

Please sign in to comment.