Fail if chmem fails
This commit is contained in:
parent
e76a222de7
commit
12ac96cf51
1 changed files with 2 additions and 2 deletions
|
@ -15,8 +15,8 @@ chmem =250000 /usr/lib/* /usr/lib/i386/* >/dev/null 2>&1
|
||||||
chmem =600000 /usr/lib/ego/* >/dev/null 2>&1
|
chmem =600000 /usr/lib/ego/* >/dev/null 2>&1
|
||||||
if [ -f $t ]
|
if [ -f $t ]
|
||||||
then cat "$t" | while read line
|
then cat "$t" | while read line
|
||||||
do awk '{ print "chmem =" $2 " " $1 " >/dev/null 2>&1 "}'
|
do awk '{ print "chmem =" $2 " " $1 " 2>&1 | grep -v area.changed.from || exit 1"}'
|
||||||
done | /bin/sh
|
done | /bin/sh -e || exit 1
|
||||||
else
|
else
|
||||||
echo "$0: $t does not exist" >&2
|
echo "$0: $t does not exist" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue