Skip to content

Instantly share code, notes, and snippets.

@bb441db
Created April 29, 2022 09:57
Show Gist options
  • Save bb441db/4709e2c6595b650d4fe8517e08a3dd38 to your computer and use it in GitHub Desktop.
Save bb441db/4709e2c6595b650d4fe8517e08a3dd38 to your computer and use it in GitHub Desktop.
Patch for swiftenv on ubuntu 22.04
diff --git a/libexec/swiftenv-install b/libexec/swiftenv-install
index db974b9..c8d9631 100755
--- a/libexec/swiftenv-install
+++ b/libexec/swiftenv-install
@@ -41,6 +41,8 @@ get_os_release() {
if [ "$ID" = "amzn" ]; then
echo "amazonlinux$VERSION_ID"
+ elif ([ "$ID" = "ubuntu" ] && [ "$VERSION_ID" = "22.04" ]); then
+ echo "ubuntu20.04"
else
echo $ID$VERSION_ID
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment