Skip to content

Commit

Permalink
Fix the archive_path option for creating a course archive.
Browse files Browse the repository at this point in the history
This is my mistake.  Without the backslash this fails entirely.  The
result is that a course archive is always saved in the admin/archives
location, and there is no override.
  • Loading branch information
drgrice1 committed Aug 17, 2023
1 parent d426bab commit 1b1aa1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/WeBWorK/Utils/CourseManagement.pm
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ sub archiveCourse {
my $data_dir = $ce->{courseDirs}{DATA};
my $dump_dir = "$data_dir/mysqldump";
my $archive_path;
if (defined $options{archive_path} && $options{archive_path} =~ /S/) {
if (defined $options{archive_path} && $options{archive_path} =~ /\S/) {
$archive_path = $options{archive_path};
} else {
$archive_path = "$ce->{webworkDirs}{courses}/admin/archives/$courseID.tar.gz";
Expand Down

0 comments on commit 1b1aa1b

Please sign in to comment.