Special symbols in `uname` shielding.

This commit is contained in:
Kolan Sh 2018-03-19 18:51:22 +03:00
parent 60652d7b91
commit 6a840c1c15
1 changed files with 2 additions and 2 deletions

View File

@ -4,10 +4,10 @@
NICE_CMD="nice -n 19 ionice -c2"
REVISION=`kernel-config list | grep \*$ | cut -d" " -f6 | cut -d- -f2-8`
REVISION=`kernel-config list | grep \*$ | cut -d" " -f6 | cut -d- -f2-8 | sed 's~\\+~\\\\+~g'`
[ "" == "$REVISION" ] && echo "No appropriate kernel revision found ;-(" && exit -1
UNAME=`uname -r`
UNAME=`uname -r | sed 's~\\+~\\\\+~g'`
echo UNAME=$UNAME
# remounting file systems ro->rw