Skip to content
Snippets Groups Projects
Commit 0a296ef1 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

fix cut command containing = character

parent b54dd624
No related branches found
No related tags found
1 merge request!38fix cut command containing = character
...@@ -110,11 +110,11 @@ ...@@ -110,11 +110,11 @@
# icon=/images/icon.png # icon=/images/icon.png
# max_check_attempts=3 # max_check_attempts=3
checkName=$(cat "$_myconfig" | grep ^checkname= | cut -f 2 -d "=" | sed 's# #_#g') checkName=$(cat "$_myconfig" | grep ^checkname= | cut -f 2- -d "=" | sed 's# #_#g')
checkCommand=$(cat "$_myconfig" | grep ^command_$MY_NAME= | cut -f 2 -d "=") checkCommand=$(cat "$_myconfig" | grep ^command_$MY_NAME= | cut -f 2- -d "=")
test -z "$checkCommand" && checkCommand=$(cat "$_myconfig" | grep ^command= | cut -f 2 -d "=") test -z "$checkCommand" && checkCommand=$(cat "$_myconfig" | grep ^command= | cut -f 2- -d "=")
checkInterval=$(cat "$_myconfig" | grep ^interval= | cut -f 2 -d "=") checkInterval=$(cat "$_myconfig" | grep ^interval= | cut -f 2 -d "=")
checkIcon=$(cat "$_myconfig" | grep ^icon= | cut -f 2 -d "=") checkIcon=$(cat "$_myconfig" | grep ^icon= | cut -f 2- -d "=")
checkMaxAttempts=$(cat "$_myconfig" | grep ^max_check_attempts= | cut -f 2 -d "=") checkMaxAttempts=$(cat "$_myconfig" | grep ^max_check_attempts= | cut -f 2 -d "=")
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment