try: fix transfer fail

This commit is contained in:
Kuoi 2023-06-15 02:16:07 +08:00
parent 5ba08fd8ee
commit 0513c8a647

View file

@ -21,7 +21,8 @@ sub system_setup {
sub transfer_docker {
my ($subdir, $dest_dir) = @_;
system('docker', 'cp', $dest_dir . '/' . $subdir, "bio:/root/");
my $path = $dest_dir . $subdir;
system('docker', 'cp', $path, "bio:/root/");
}
sub prepare_files {
@ -139,8 +140,8 @@ run_docker_container();
system_setup();
# transfer
transfer_docker('bio', $abpath);
transfer_docker('bio-wayfire', $abpath);
transfer_docker('/bio', $abpath);
transfer_docker('/bio-wayfire', $abpath);
# Call prepare_files function before copying templates
prepare_files( $abpath );