On Ubuntu 17.10 amd64, the first rsync statement errors out:
rsync: change_dir: "..build/5.26/lib/perl5/x86_64-linux-thread-multi"
failed: No such file or directory (2)
This error occurs because the directory in perl5/lib is actually named x86_64-linux-gnu-thread-multi, but the script sanitizes the value prior to storage in ARCH.
This PR adds a new variable to store Perl's archname value before the sed filters to sanitize out the extra -gnu, -arm, etc. Then, replace sanitized arch value with raw arch within the rsync statements to match the directory name within perl5/lib.
On Ubuntu 17.10 amd64, the first rsync statement errors out:
This error occurs because the directory in perl5/lib is actually named x86_64-linux-gnu-thread-multi, but the script sanitizes the value prior to storage in ARCH.
This PR adds a new variable to store Perl's archname value before the sed filters to sanitize out the extra -gnu, -arm, etc. Then, replace sanitized arch value with raw arch within the rsync statements to match the directory name within perl5/lib.
Fixes a regression introduced in #36 .