Skip to content

Commit

Permalink
unlink cookie when finished
Browse files Browse the repository at this point in the history
  • Loading branch information
circulosmeos committed Jan 15, 2017
1 parent cff9608 commit 31e7e9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gdown.pl
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
execute_command();
}

unlink $TEMP;

sub execute_command() {
$COMMAND="wget --no-check-certificate --load-cookie $TEMP --save-cookie $TEMP \"$URL\"";
$COMMAND.=" -O \"$FILENAME\"" if $FILENAME ne '';
Expand Down

0 comments on commit 31e7e9c

Please sign in to comment.