diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-04-24 14:35:19 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-04-24 16:32:56 +0200 |
commit | d70b2154a6ba68b676c24e7512121a882a7ef963 (patch) | |
tree | b3587038c0035c6a5a2aabd51eb8e364069a370f /solenv/bin/modules | |
parent | 88be8aa14d52ad102dc6b01c1c962d4e6cac4941 (diff) |
Proper shell quoting
Had found
> sh: -c: line 0: syntax error near unexpected token `('
> sh: -c: line 0: `file /Users/stephan/Software/lo/core/instdir/LibreOffice.app/Contents/Frameworks/LibreOfficePython.framework/Versions/3.5/lib/python3.5/site-packages/setuptools/script (dev).tmpl'
in workdir/CustomTarget/instsetoo_native/install/install.phony.log on macOS.
Change-Id: I4b01b5f0a292424a60558cdb8b431a3d8dbdf1d4
Reviewed-on: https://gerrit.libreoffice.org/71234
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'solenv/bin/modules')
-rw-r--r-- | solenv/bin/modules/installer/strip.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/solenv/bin/modules/installer/strip.pm b/solenv/bin/modules/installer/strip.pm index 9a8de5bbbb6d..2074973828ef 100644 --- a/solenv/bin/modules/installer/strip.pm +++ b/solenv/bin/modules/installer/strip.pm @@ -42,7 +42,8 @@ sub _need_to_strip # Check using the "file" command - open (FILE, "file $filename |"); + $filename =~ s/'/'\\''/g; + open (FILE, "file '$filename' |"); my $fileoutput = <FILE>; close (FILE); |