Back to quiet
This commit is contained in:
parent
ed019d6bad
commit
aa26715216
|
@ -136,7 +136,7 @@ function reconfigure_gogs {
|
||||||
|
|
||||||
function upgrade_gogs {
|
function upgrade_gogs {
|
||||||
echo "1" > ~/build/testlog.txt
|
echo "1" > ~/build/testlog.txt
|
||||||
if ! grep 'gogs version:' $COMPLETION_FILE; then
|
if ! grep -q 'gogs version:' $COMPLETION_FILE; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -111,7 +111,7 @@ function get_completion_param {
|
||||||
if [ ${#param_name} -gt 0 ]; then
|
if [ ${#param_name} -gt 0 ]; then
|
||||||
if [ $COMPLETION_FILE ]; then
|
if [ $COMPLETION_FILE ]; then
|
||||||
if [ -f $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}')
|
param_value=$(cat $COMPLETION_FILE | grep "${param_name}:" | head -n 1 | awk -F ':' '{print $2}')
|
||||||
echo "$param_value"
|
echo "$param_value"
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue