From 8c3b1ac046e0a4b1faa80a82c058f41a1ce905c5 Mon Sep 17 00:00:00 2001 From: Trammell Hudson Date: Tue, 2 Aug 2016 21:21:56 -0400 Subject: [PATCH] temp var for destination library --- populate-lib | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/populate-lib b/populate-lib index b034c1ed..ffb4b198 100755 --- a/populate-lib +++ b/populate-lib @@ -52,11 +52,13 @@ for my $lib (keys %libraries) # and die "$dirname: Unable to make directory: $!\n"; # } - copy $lib, "$dest/$libname" + my $dest_lib = "$dest/$libname"; + + copy $lib, $dest_lib or die "$lib: Unable to copy: $!\n"; # make them executable because otherwise chroot barfs - system("chmod", "+x", "$dest/$libname"); + system("chmod", "+x", $dest_lib); } print "Total size $size\n";