Avoid backticks and use $() instead.
parent
b282e76f59
commit
7f98b5419b
|
@ -76,7 +76,7 @@ function killproc() {
|
|||
echo "Expected three arguments, e.g. $0 -p pidfile signal"
|
||||
fi
|
||||
|
||||
pid=`cat $2`
|
||||
pid=$(cat $2)
|
||||
|
||||
kill -s $3 $pid
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue