From 419d6b4b6aa4c998a3c5f4f7130c402283e28efb Mon Sep 17 00:00:00 2001 From: Harald Hope Date: Sun, 6 May 2018 21:16:59 -0700 Subject: [PATCH] process starter fix --- inxi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index cfd2d21..499ee07 100755 --- a/inxi +++ b/inxi @@ -10495,8 +10495,8 @@ sub process_starter { my ($count, $row10, $row11) = @_; my (@return); # note: [migration/0] would clear with a simple basename - if ($count > 11 && $row11 =~ /^\//){ - $row11 =~ s/^\/.*\///; + if ($count > 11 && ($row11 =~ /^\// || $row11 =~ /^[^\[]+\// )){ + $row11 =~ s/^\/?.*\///; $return[0] = $row11; $row10 =~ s/^\/.*\///; $return[1] = $row10;