Changeset - ee888718f70b
[Not reviewed]
default
0 1 0
Dennis Fink (metalgamer) - 5 years ago 2015-08-20 01:39:04
dennis.fink@c3l.lu
No need to double trap on archive
1 file changed with 2 insertions and 2 deletions:
yaah
2
2
0 comments (0 inline, 0 general)
yaah
Show inline comments
...
 
@@ -357,8 +357,8 @@ extract_and_remove () {
 

	
 
        tar xzf "$1" -C "$downloaddir"
 

	
 
        msg_verbose2 "Setting trap to remove archive and extracted directory"
 
        trap "rm -rf '$1' '$downloaddir/${1%.tar.gz}'" EXIT
 
        msg_verbose2 "Setting trap to remove extracted directory"
 
        trap "rm -rf '$downloaddir/${1%.tar.gz}'" EXIT
 

	
 
        msg_verbose1 "Removing '$1'"
 
        rm "$1"
0 comments (0 inline, 0 general)