From 85be06d7a3dd8066bd6436c2455ec09d5a9857b8 Mon Sep 17 00:00:00 2001 From: pika Date: Fri, 23 May 2025 21:24:10 +0200 Subject: [PATCH] wip --- dream.sh | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/dream.sh b/dream.sh index aae5e1e..80e06b0 100644 --- a/dream.sh +++ b/dream.sh @@ -396,7 +396,13 @@ get_packager() { sleep 1 - run fallback && check "Got packager.." || throw "No chance helping you now buddy!" + if run fallback; then + upclear + check "Got packager.." + else + upclear + throw "No chance helping you now buddy!" + fi fi } @@ -412,12 +418,13 @@ dist_setup() { _setup debian # Codename support if [ -n $VERSION_CODENAME ]; then - case "$VERSION_CODENAME" in - trixie) trixie=true ;; - bookworm) bookworm=true ;; - bullseye) bullseye=true ;; - buster) buster=true ;; - esac + export $VERSION_CODENAME=$VERSION_CODENAME + # case "$VERSION_CODENAME" in + # trixie) trixie=true ;; + # bookworm) bookworm=true ;; + # bullseye) bullseye=true ;; + # buster) buster=true ;; + # esac fi ;; ubuntu) @@ -425,12 +432,13 @@ dist_setup() { _setup ubuntu # Codename support if [ -n $VERSION_CODENAME ]; then - case "$VERSION_CODENAME" in - noble) noble=true ;; - jammy) jammy=true ;; - focal) focal=true ;; - bionic) bionic=true ;; - esac + export $VERSION_CODENAME=$VERSION_CODENAME + # case "$VERSION_CODENAME" in + # noble) noble=true ;; + # jammy) jammy=true ;; + # focal) focal=true ;; + # bionic) bionic=true ;; + # esac fi ;; fedora)