Back to quiet

This commit is contained in:
Bob Mottram 2017-04-12 18:07:41 +01:00
parent ed019d6bad
commit aa26715216
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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