chiark / gitweb /
In access_quirk, filter by defined at the end. (nfc)
[dgit.git] / dgit
diff --git a/dgit b/dgit
index 5f88625d300ef44bccda6c67b5995f4f9726a26e..57159b70fd62cdba67c3568736bdd594ccd6221f 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -601,9 +601,8 @@ sub access_distros () {
     my @l = access_basedistro();
 
     my (undef,$quirkdistro) = access_quirk();
-    unshift @l, $quirkdistro if defined $quirkdistro;
-
-    return @l;
+    unshift @l, $quirkdistro;
+    return grep { defined } @l;
 }
 
 sub access_cfg (@) {