diff options
author | Yeliz Taneroğlu <yeliztaneroglu@gmail.com> | 2017-05-15 23:26:19 +0300 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2017-05-20 11:45:32 +0200 |
commit | aa8fdfd2c2f6ba421e988a3ca85b1a1cbaeb69b8 (patch) | |
tree | 146ba1ce686a30132eb7db5400655a280ed42235 /solenv | |
parent | 6c5ba692627791ba8a7f412ee965f89487be06d5 (diff) |
tdf#105204 fix shellcheck warning in solenv/bin/make-raspbian-root-tarball
Change-Id: I9257e43f18945f18c7ef738621dcb2f117246934
SC2038: Use -print0/-0 or find -exec + to allow for non-alphanumeric filenames.
Reviewed-on: https://gerrit.libreoffice.org/37658
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'solenv')
-rwxr-xr-x | solenv/bin/make-raspbian-root-tarball | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/solenv/bin/make-raspbian-root-tarball b/solenv/bin/make-raspbian-root-tarball index a6540e9f9b1e..71054095715b 100755 --- a/solenv/bin/make-raspbian-root-tarball +++ b/solenv/bin/make-raspbian-root-tarball @@ -61,7 +61,7 @@ rm $FILELIST cd $STAGINGDIR # Change absolute symlinks to relative -find . -type l | xargs ls -ld | grep -- '-> /' | +find . -type l -print0 | xargs -0 ls -ld | grep -- '-> /' | while read mode links user group size month day yearortime link arrow target; do target=`echo "$target" | sed -e 's,/,..;,'` while test `expr index $target /` -gt 0; do |