Skip to content

Commit

Permalink
Fix Shellcheck warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-cerny committed Nov 22, 2024
1 parent 6c9e879 commit c5b20f9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ SYSCALL_GROUPING=""

FILTER_NODEV=$(awk '/nodev/ { print $2 }' /proc/filesystems | paste -sd,)
if {{{ bash_bootc_build() }}} ; then
PARTITIONS=("/")
PARTITIONS="/"
else
PARTITIONS=$(findmnt -n -l -k -it $FILTER_NODEV | grep -Pv "noexec|nosuid|/proc($|/.*$)" | awk '{ print $1 }')
PARTITIONS=$(findmnt -n -l -k -it "$FILTER_NODEV" | grep -Pv "noexec|nosuid|/proc($|/.*$)" | awk '{ print $1 }')
fi
for PARTITION in $PARTITIONS; do
PRIV_CMDS=$(find "${PARTITION}" -xdev -perm /6000 -type f 2>/dev/null)
Expand Down

0 comments on commit c5b20f9

Please sign in to comment.