Skip to content
Snippets Groups Projects
Commit fe31d247 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

Eliminate few bashisms

Using == as test condition is bashism. While ash is willing to swallow
that, there are shells that aren't.
parent 88913a24
No related branches found
No related tags found
No related merge requests found
......@@ -25,8 +25,8 @@ if [ $# -ne 3 ]; then
exit 1
fi
if [ $1 == "-s" ]; then
if [ $2 == "restart" ] || [ $2 == "error" ] || [ $2 == "update" ] || [ $2 == "news" ]; then
if [ $1 = "-s" ]; then
if [ $2 = "restart" ] || [ $2 = "error" ] || [ $2 = "update" ] || [ $2 = "news" ]; then
severity=$2
else
usage
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment