Closed ComedyTomedy closed 1 year ago
It doesn't solve the problem. I have corrected.
Oh, is it removing spaces in filenames? I don't entirely understand the comma in ${1%, }
, but I wonder if ${1##* }
might be a good idea, stripping everything up to the final space.
The variable munging turns
filename.tar.gz
into justgz
before trying to match against*.tar.gz
, which inevitably fails.Removing the munging ought to fix this.