mirror of
https://github.com/curl/curl.git
synced 2026-05-15 04:36:21 +03:00
OS400/makefile.sh: fix shellcheck warning SC2038
Also: - OS400/makefile.sh: use end-of-options marker in xargs command. - OS400/make-tests.sh: drop warning suppression. Seems to not trigger anymore as of shellcheck 0.11.0 Closes #19451
This commit is contained in:
parent
6aab1dc263
commit
af5a1647af
2 changed files with 2 additions and 3 deletions
|
|
@ -58,7 +58,7 @@ build_all_programs()
|
|||
|
||||
for FLAG in ${PGMCFLAGS}
|
||||
do case "${FLAG}" in
|
||||
-D?*) # shellcheck disable=SC2001
|
||||
-D?*)
|
||||
DEFINE="$(echo "${FLAG}" | sed 's/^..//')"
|
||||
PGMDFNS="${PGMDFNS} '${DEFINE}'"
|
||||
;;
|
||||
|
|
|
|||
|
|
@ -35,8 +35,7 @@ cd "${TOPDIR}" || exit 1
|
|||
|
||||
# Make sure all files are UTF8-encoded.
|
||||
|
||||
# shellcheck disable=SC2038
|
||||
find "${TOPDIR}" -type f -print | xargs ls -S | while read -r CCSID FILE
|
||||
find "${TOPDIR}" -type f -print0 | xargs -0 ls -S -- | while read -r CCSID FILE
|
||||
do if [ "${CCSID}" != 1208 ]
|
||||
then CMD="CPY OBJ('${FILE}') TOOBJ('${FILE}') FROMCCSID(*OBJ)"
|
||||
CMD="${CMD} TOCCSID(1208) DTAFMT(*TEXT) REPLACE(*YES)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue