From 69ad376fefa74ba0335e607f2174309b9285ccc6 Mon Sep 17 00:00:00 2001 From: Trey Moen <50057480+greatgitsby@users.noreply.github.com> Date: Fri, 4 Sep 2026 19:09:45 -0700 Subject: [PATCH] Revert "op: support all the linuxes!" (#38774) Revert "op: support all the linuxes! (#38773)" This reverts commit 33790c855c7eac1c825a6b9f71cf9f58aa3462eb. --- tools/op.sh | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/tools/op.sh b/tools/op.sh index d4a0263973..43c88a2a86 100755 --- a/tools/op.sh +++ b/tools/op.sh @@ -123,7 +123,23 @@ function op_check_git() { function op_check_os() { echo "Checking for compatible os version..." if [[ "$OSTYPE" == "linux-gnu"* ]]; then - echo -e " ↳ [${GREEN}✔${NC}] Linux detected." + + if [ -f "/etc/os-release" ]; then + source /etc/os-release + case "$VERSION_CODENAME" in + "jammy" | "kinetic" | "noble" | "focal") + echo -e " ↳ [${GREEN}✔${NC}] Ubuntu $VERSION_CODENAME detected." + ;; + * ) + echo -e " ↳ [${RED}✗${NC}] Incompatible Ubuntu version $VERSION_CODENAME detected!" + return 1 + ;; + esac + else + echo -e " ↳ [${RED}✗${NC}] No /etc/os-release on your system. Make sure you're running on Ubuntu, or similar!" + return 1 + fi + elif [[ "$OSTYPE" == "darwin"* ]]; then echo -e " ↳ [${GREEN}✔${NC}] macOS detected." else @@ -206,7 +222,6 @@ EOF echo "Pulling git lfs files..." st="$(date +%s)" - git lfs install --local if ! retry 3 git lfs pull; then echo -e " ↳ [${RED}✗${NC}] Pulling git lfs files failed!" return 1