Changeset - 670edeb2a4dc
[Not reviewed]
default
0 1 0
Dennis Fink (metalgamer) - 5 years ago 2015-02-10 22:42:03
dennis.fink@c3l.lu
Fix bug.

If downloaddir is set to ./ the file will not be downloaded
correctly/extracted.

Fixed by using $PWD if the -d parameter is set to ./
1 file changed with 5 insertions and 1 deletions:
yaah
5
1
0 comments (0 inline, 0 general)
yaah
Show inline comments
...
 
@@ -563,7 +563,11 @@ done
 

	
 
# check if downloaddir is a directory and remove trailing slash
 
if [[ -d $downloaddir ]]; then
 
    downloaddir=${downloaddir%/}
 
    if [[ "$downloaddir" == "./" ]]; then
 
        downloaddir="$PWD"
 
    else
 
        downloaddir=${downloaddir%/}
 
    fi
 
else
 
    error "$downloaddir is not a directory"
 
    exit 1
0 comments (0 inline, 0 general)