Skip to content

Commit 4a2a8a9

Browse files
fedekrumKristan Kenney
authored andcommitted
Corrected wrongly search results
The results returned by multiple arguments were wrong This correction implies an AND operation on all the arguments eg. v-search-command add to Command Search Results ================================= v-add-cron-hestia-autoupdate v-add-fs-directory v-add-mail-account-autoreply v-copy-fs-directory v-delete-cron-hestia-autoupdate v-delete-fs-directory v-delete-mail-account-autoreply v-list-fs-directory v-list-mail-account-autoreply v-list-sys-hestia-autoupdate v-move-fs-directory v-restore-user v-schedule-user-restore v-stop-firewall v-stop-service ================================= Found 15 matching items in 426 commands. with the correction: v-search-command add to Command Search Results ================================= v-add-cron-hestia-autoupdate v-add-fs-directory v-add-mail-account-autoreply ================================= Found 3 matching items in 426 commands.
1 parent c441abb commit 4a2a8a9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/v-search-command

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,12 @@ check_hestia_demo_mode
3535
# Action #
3636
#----------------------------------------------------------#
3737

38-
SearchPath=`ls -a $HESTIA/bin/ | sort`
38+
SearchResults=`ls -a $HESTIA/bin/ | sort`
3939
TotalItems=`ls -a $HESTIA/bin/ | sort | wc -l`
4040

41+
4142
for i; do
42-
SearchResults=`echo $SearchPath | tr " " "\n" | grep $i`
43+
SearchResults=`echo $SearchResults | tr " " "\n" | grep $i`
4344
FoundItems=`echo $SearchResults | tr " " "\n" | grep $i | wc -l`
4445
done
4546

0 commit comments

Comments
 (0)