Browse Source

Print the file name for each match

Serghey Rodin 6 năm trước cách đây
mục cha
commit
82b635f8da
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      bin/v-search-ssl-certificates

+ 1 - 1
bin/v-search-ssl-certificates

@@ -73,7 +73,7 @@ csv_list() {
 #                       Action                             #
 #                       Action                             #
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 
 
-search_cmd=$(grep "SSL='yes'" $VESTA/data/users/*/web.conf |\
+search_cmd=$(grep -H "SSL='yes'" $VESTA/data/users/*/web.conf |\
     cut -f 1 -d ' ' |\
     cut -f 1 -d ' ' |\
     sed -e "s|$VESTA/data/users/|USER='|" -e "s|/web.conf:|' |")
     sed -e "s|$VESTA/data/users/|USER='|" -e "s|/web.conf:|' |")