Skip to content

Instantly share code, notes, and snippets.

@futurejones
futurejones / swift-apt-repo-install.sh
Last active Oct 20, 2021
Install script for the Swift Community Apt Repository - https://archive.swiftlang.xyz
View swift-apt-repo-install.sh
#! /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