aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-02-23 18:47:40 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2015-02-23 18:47:40 -0800
commit7aa342d050e746b0944ac17a81bf7ac3a7793b11 (patch)
tree0fc13226778ca4e2eaf86660809203ac6fe454c6
parentPrepare real wait for status. (diff)
downloadbackend-7aa342d050e746b0944ac17a81bf7ac3a7793b11.tar.gz
backend-7aa342d050e746b0944ac17a81bf7ac3a7793b11.tar.bz2
backend-7aa342d050e746b0944ac17a81bf7ac3a7793b11.zip
Fix arg.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xag2
1 files changed, 1 insertions, 1 deletions
diff --git a/ag b/ag
index 52e8848..57e178d 100755
--- a/ag
+++ b/ag
@@ -148,7 +148,7 @@ Ag::Utils.proc_count = $options.jobs
def do_full
abort "Wrong argument type: #{$options.argmode.to_s}" unless $options.argmode == :dir
begin
- Ag::Storage.delete_index(list)
+ Ag::Storage.delete_index($options.name)
rescue Elasticsearch::Transport::Transport::Errors::NotFound => e
$stderr.puts "Index did not exist yet. Creating." if $options.debug
end