Skip to content

Commit

Permalink
Merge pull request #2179 from drgrice1/bugfix/course-archive-path
Browse files Browse the repository at this point in the history
Fix the archive_path option for creating a course archive.
  • Loading branch information
Alex-Jordan authored Aug 17, 2023
2 parents 15a4d8a + 1b1aa1b commit 00818c9
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 00818c9

Please sign in to comment.