Skip to content

Commit

Permalink
scripts: zfs.sh: remove cat
Browse files Browse the repository at this point in the history
Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes openzfs#13274
  • Loading branch information
nabijaczleweli authored and andrewc12 committed Sep 23, 2022
1 parent 96e5fe1 commit e0878ba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/zfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ done

kill_zed() {
if [ -f "$ZED_PIDFILE" ]; then
PID=$(cat "$ZED_PIDFILE")
read -r PID <"$ZED_PIDFILE"
kill "$PID"
fi
}
Expand Down Expand Up @@ -234,8 +234,7 @@ stack_check_linux() {
STACK_LIMIT=15362

if [ -e "$STACK_MAX_SIZE" ]; then
STACK_SIZE=$(cat "$STACK_MAX_SIZE")

read -r STACK_SIZE <"$STACK_MAX_SIZE"
if [ "$STACK_SIZE" -ge "$STACK_LIMIT" ]; then
echo
echo "Warning: max stack size $STACK_SIZE bytes"
Expand Down

0 comments on commit e0878ba

Please sign in to comment.