diff options
author | Mario Trangoni <mjtrangoni@gmail.com> | 2021-01-31 14:23:06 +0100 |
---|---|---|
committer | Mario Trangoni <mjtrangoni@gmail.com> | 2021-01-31 14:23:59 +0100 |
commit | daeb82e33bfeb23d09f7782728f088bdc5d39ce5 (patch) | |
tree | e6bb4f2f779badb210135a5e27a61527e7253114 /roll-tarballs.sh | |
parent | 5b628e2d79bce67b255690e0a54a0a488bbb05e0 (diff) | |
download | nx-libs-daeb82e33bfeb23d09f7782728f088bdc5d39ce5.tar.gz nx-libs-daeb82e33bfeb23d09f7782728f088bdc5d39ce5.tar.bz2 nx-libs-daeb82e33bfeb23d09f7782728f088bdc5d39ce5.zip |
shellcheck: Fix SC2162 issue
See,
find . -name "*.sh" | xargs shellcheck -i SC2162
[...]
For more information:
https://www.shellcheck.net/wiki/SC2162 -- read without -r will mangle backs...
Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
Diffstat (limited to 'roll-tarballs.sh')
-rwxr-xr-x | roll-tarballs.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/roll-tarballs.sh b/roll-tarballs.sh index acef42daa..85e098960 100755 --- a/roll-tarballs.sh +++ b/roll-tarballs.sh @@ -81,7 +81,7 @@ cd "${TEMP_DIR}/${PROJECT}-${RELEASE}/" # Replace symlinks by copies of the linked target files # Note: We don't have symlinked directories!!! -find . -type "l" | while read link; do +find . -type "l" | while read -r link; do TARGET="$(readlink "${link}")" pushd "$(dirname "${link}")" >/dev/null if [ -f "${TARGET}" ]; then @@ -156,12 +156,12 @@ if [ "x$MODE" = "xfull" ]; then rm -f "nx-X11/extras/Mesa/src/mesa/main/"*.py rm -f "nx-X11/extras/Mesa/src/mesa/main/"{mesa.def,Imakefile,vsnprintf.c} - find nx-X11/extras/Mesa/ -name Makefile | while read file; do rm "$file"; done - find nx-X11/extras/Mesa/ -name Makefile.* | while read file; do rm "$file"; done - find nx-X11/extras/Mesa/ -name descrip.mms | while read file; do rm "$file"; done + find nx-X11/extras/Mesa/ -name Makefile | while read -r file; do rm "$file"; done + find nx-X11/extras/Mesa/ -name Makefile.* | while read -r file; do rm "$file"; done + find nx-X11/extras/Mesa/ -name descrip.mms | while read -r file; do rm "$file"; done # this is for 3.5.0.x only... - cat "debian/patches/series" | sort | grep -v '^#' | egrep "([0-9]+(_|-).*\.(full|full\+lite)\.patch)" | while read file + cat "debian/patches/series" | sort | grep -v '^#' | egrep "([0-9]+(_|-).*\.(full|full\+lite)\.patch)" | while read -r file do cp -v "debian/patches/$file" "doc/applied-patches/" echo "${file##*/}" >> "doc/applied-patches/series" @@ -198,7 +198,7 @@ else mv LICENSE.nxcomp LICENSE # this is for 3.5.0.x only... - cat "debian/patches/series" | sort | grep -v '^#' | egrep "([0-9]+(_|-).*\.full\+lite\.patch)" | while read file + cat "debian/patches/series" | sort | grep -v '^#' | egrep "([0-9]+(_|-).*\.full\+lite\.patch)" | while read -r file do cp -v "debian/patches/$file" "doc/applied-patches/" echo "${file##*/}" >> "doc/applied-patches/series" |