Skip to content
Snippets Groups Projects
Commit aa267152 authored by Bob Mottram's avatar Bob Mottram
Browse files

Back to quiet

parent ed019d6b
No related branches found
No related tags found
No related merge requests found
......@@ -136,7 +136,7 @@ function reconfigure_gogs {
function upgrade_gogs {
echo "1" > ~/build/testlog.txt
if ! grep 'gogs version:' $COMPLETION_FILE; then
if ! grep -q 'gogs version:' $COMPLETION_FILE; then
return
fi
......
......@@ -111,7 +111,7 @@ function get_completion_param {
if [ ${#param_name} -gt 0 ]; then
if [ $COMPLETION_FILE ]; then
if [ -f $COMPLETION_FILE ]; then
if grep "${param_name}:" $COMPLETION_FILE; then
if grep -q "${param_name}:" $COMPLETION_FILE; then
param_value=$(cat $COMPLETION_FILE | grep "${param_name}:" | head -n 1 | awk -F ':' '{print $2}')
echo "$param_value"
return
......
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