mirror of
https://github.com/sbopkg/sbopkg
synced 2025-01-16 03:41:32 +01:00
Close issue 39 by changing a regex in get_source()
This commit is contained in:
parent
10dab0fcdd
commit
0b14ed1cd5
1 changed files with 3 additions and 2 deletions
|
@ -2889,8 +2889,9 @@ get_source() {
|
|||
DL=$(ls -A . 2> /dev/null)
|
||||
# Source filename corrections for Virtualbox, where '?e=foo' gets
|
||||
# appended to the filename and for calcurse, where a 'foo?' gets
|
||||
# prepended to the filename
|
||||
DL_SRCNAME=$(sed 's/?e=.*$//;s/^.*?//' <<< "$DL")
|
||||
# prepended to the filename - and for a potential issue with trac
|
||||
# URLs
|
||||
DL_SRCNAME=$(sed 's/?e=.*$//;s/?format=.*$//;s/^.*?//' <<< "$DL")
|
||||
if [[ $DL_SRCNAME ]]; then
|
||||
# if we have *anything* in here, then we did a download. We
|
||||
# may not know what to do with it, but we don't need to get it
|
||||
|
|
Loading…
Reference in a new issue