[Slim-Checkins] r34291 - /vendor/plugins/check.pl
[email protected] Thu, 21 Jan 2016 21:24:00 -0000
| Newsgroups | gmane.music.equipment.slimdevices.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: mherger
Date: Thu Jan 21 21:23:59 2016
New Revision: 34291
URL: http://svn.slimdevices.com/slim?rev=34291&view=rev
Log:
Put paths in hyphens to protect them from breaking up.
Modified:
vendor/plugins/check.pl
Modified: vendor/plugins/check.pl
URL: http://svn.slimdevices.com/slim/vendor/plugins/check.pl?rev=34291&r1=34290&r2=34291&view=diff
==============================================================================
--- vendor/plugins/check.pl (original)
+++ vendor/plugins/check.pl Thu Jan 21 21:23:59 2016
@@ -7,7 +7,7 @@
chdir $Bin;
-my $svnUp = `svn up $Bin`;
+my $svnUp = `svn up "$Bin"`;
warn $svnUp if DEBUG;
@@ -16,14 +16,14 @@
# Unfortunately Perl 5.18 introduced changes to the hash handling which would change the file's structure.
# Try to use an older version if possible. This is mostly to simplify my needs on OSX.
if ( $] > 5.016 && -f '/usr/bin/perl5.16' ) {
- $buildCmd = "/usr/bin/perl5.16 $buildCmd";
+ $buildCmd = "/usr/bin/perl5.16 '$buildCmd'";
}
my $build = `$buildCmd`;
warn $build if DEBUG;
-my $diff = `svn diff $Bin`;
+my $diff = `svn diff "$Bin"`;
if ($diff) {
if ( $^O =~ /darwin/i ) {