mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Enable shellcheck to run for select scripts
Enable shellcheck to run on zed scripts, paxcheck.sh, zfs-tests.sh, zfs.sh, and zloop.sh. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov> Closes #5812
This commit is contained in:
committed by
Brian Behlendorf
parent
9b77d1c958
commit
c552fbc5f0
+3
-2
@@ -1,5 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# shellcheck disable=SC2039
|
||||
if ! type scanelf > /dev/null 2>&1; then
|
||||
echo "scanelf (from pax-utils) is required for these checks." >&2
|
||||
exit 3
|
||||
@@ -8,7 +9,7 @@ fi
|
||||
RET=0
|
||||
|
||||
# check for exec stacks
|
||||
OUT="$(scanelf -qyRAF '%e %p' $1)"
|
||||
OUT=$(scanelf -qyRAF '%e %p' "$1")
|
||||
|
||||
if [ x"${OUT}" != x ]; then
|
||||
RET=2
|
||||
@@ -24,7 +25,7 @@ fi
|
||||
|
||||
|
||||
# check for TEXTRELS
|
||||
OUT="$(scanelf -qyRAF '%T %p' $1)"
|
||||
OUT=$(scanelf -qyRAF '%T %p' "$1")
|
||||
|
||||
if [ x"${OUT}" != x ]; then
|
||||
RET=2
|
||||
|
||||
Reference in New Issue
Block a user