From patchwork Wed Feb 8 04:16:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Axtens X-Patchwork-Id: 725492 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vJ7GP2f9fz9s2P for ; Wed, 8 Feb 2017 15:17:33 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=axtens.net header.i=@axtens.net header.b="jUO1NYQE"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3vJ7GP1YCJzDqC7 for ; Wed, 8 Feb 2017 15:17:33 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=axtens.net header.i=@axtens.net header.b="jUO1NYQE"; dkim-atps=neutral X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Received: from mail-pf0-x242.google.com (mail-pf0-x242.google.com [IPv6:2607:f8b0:400e:c00::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3vJ7GF0ZnqzDq5W for ; Wed, 8 Feb 2017 15:17:24 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=axtens.net header.i=@axtens.net header.b="jUO1NYQE"; dkim-atps=neutral Received: by mail-pf0-x242.google.com with SMTP id 19so10679807pfo.3 for ; Tue, 07 Feb 2017 20:17:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=from:to:cc:subject:date:message-id; bh=CULAA8ZFElEEg+4CieKyyTugFeVwlNbh2vta363HisU=; b=jUO1NYQEQqYMq++Gtryv8Q5POEE2qqq+PP321FTZAt/35p8ofmimzBUezDz9/bmmGJ 9KU/MHDG5jtxGmxl4EMpSMRWXzgke8BkvXrDOKOKXIzmIIV0H+piUHMs/xYC56YaHuP2 0bM0dZDBhiXM6OEpouiN9zyPs0M9EFu7RkYzU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=CULAA8ZFElEEg+4CieKyyTugFeVwlNbh2vta363HisU=; b=sDIs1JmhS4ScLTQOV6NO+e2m51Do5oTuBZeFaarqsPIIvGTdC+xERRQTDgD8kUlvqk ZlM84ODobc4p/yvJenWUrdGVv6hUNcy1NTO44aiazRyMAwGZ97R1C3E/pNH7BtPWbPYT 557LJ+0jnBUHfCIJwvNtG6cjuWBXaAuA5y9V4JiJCMNTXa3q41fNNntI4aOEV83F11QZ 8caw4cJE3S8V12IFZAroDYR/Q6M0VeOexFQgSGoPt/MV4ZtuWnzYyLY7zMWrUMRez4vO GQ3bWtoRUeVkJYmZacMdskBYiX0mO+4rW/MXCX0rYg483c2H2VfM6Po8IuetAGhyDeFA WPvA== X-Gm-Message-State: AIkVDXIJ+V0V4GqRBOvyJgudDNjmqaURpJqzftu+Ma4rOljFw9/n6neJdTgdZmYTKCVgEA== X-Received: by 10.98.214.73 with SMTP id r70mr23755835pfg.89.1486527442774; Tue, 07 Feb 2017 20:17:22 -0800 (PST) Received: from connectitude.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id b67sm15137339pfj.81.2017.02.07.20.17.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Feb 2017 20:17:22 -0800 (PST) From: Daniel Axtens To: patchwork@lists.ozlabs.org Subject: [PATCH] Fix double use of mail directory in parsemail-batch.sh Date: Wed, 8 Feb 2017 15:16:58 +1100 Message-Id: <20170208041658.14350-1-dja@axtens.net> X-Mailer: git-send-email 2.9.3 X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" 2d142b2c0a27 ("bin: Run scripts through shellcheck") changes an ls to a find. find output includes the directory name, unlike ls. This breaks the script, because it prepends the mail directory later on. Remove the prepending in the script - leave it exclusively to find. Fixes: 2d142b2c0a27 ("bin: Run scripts through shellcheck") Cc: stephen@that.guru Signed-off-by: Daniel Axtens Reviewed-by: Stephen Finucane --- patchwork/bin/parsemail-batch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patchwork/bin/parsemail-batch.sh b/patchwork/bin/parsemail-batch.sh index 853679103595..d42712ed0995 100755 --- a/patchwork/bin/parsemail-batch.sh +++ b/patchwork/bin/parsemail-batch.sh @@ -40,5 +40,5 @@ shift find "$mail_dir" -maxdepth 1 | while read -r line; do echo "$line" - "$BIN_DIR/parsemail.sh" "$@" < "$mail_dir/$line" + "$BIN_DIR/parsemail.sh" "$@" < "$line" done