Skip to content

Instantly share code, notes, and snippets.

@futurejones
futurejones / swift-apt-repo-install.sh
Last active October 10, 2023 12:54
Install script for the Swift Community Apt Repository - https://swiftlang.xyz
#! /bin/bash
#
# Install script for the Swift Community Apt Repository - swiftlang.xyz
#
# check distribution version and infer distro with switch/case
## as all distribution versions have different names we can use this information to infer the distribution name.
check_ver () {
for var in "${SUPPORTED_VER[@]}"
do