From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from calrissian.rohieb.name ([81.20.132.56] helo=rohieb.name) by metis.ext.pengutronix.de with esmtp (Exim 4.89) (envelope-from ) id 1gW8Rq-0006qA-Jw for ptxdist@pengutronix.de; Mon, 10 Dec 2018 00:25:18 +0100 From: Roland Hieber Date: Mon, 10 Dec 2018 00:24:42 +0100 Message-Id: <20181209232442.16001-1-rohieb@rohieb.name> MIME-Version: 1.0 Subject: [ptxdist] [PATCH] Toplevel: fix detection of -n / --dry-run option List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Roland Hieber JChmaWx0ZXIgbiwkKE1BS0VGTEFHUykpIHdpbGwgYmUgZW1wdHkgaWYgbWFrZSBpcyBjYWxsZWQg d2l0aCBhbnkKYWRkaXRpb25hbCBwYXJhbWV0ZXJzLiBGb3IgZXhhbXBsZSwgd2l0aCBgbWFrZSAt cyAtbmAsIE1BS0VGTEFHUyB3aWxsCmNvbnRhaW4gInNuIiwgd2hpY2ggd2lsbCBub3QgbWF0Y2gg dGhlIHBhdHRlcm4gIm4iLgoKVGhlIGZvbGxvd2luZyB3YXkgaXMgaW5zcGlyZWQgYnkga2VybmVs IGNvbW1pdCA2ZjBmYTU4ZTQ1OTY0MmIxNjksIHdoaWNoCnRyaWVkIHRvIGRvIHRoZSBzYW1lIGZv ciB0aGUgLXMgLyAtLXNpbGVudCBvcHRpb24gKGFsdGhvdWdoIHN1cHBvcnQgZm9yCm1ha2UgMy54 IGlzIHByb2JhYmx5IG5vdCBpbXBvcnRhbnQgdG8gdXMpOgoKICAgIGtidWlsZDogc2ltcGxpZnkg c2lsZW50IGJ1aWxkICgtcykgZGV0ZWN0aW9uCgogICAgVGhpcyBhbGxvd3MgdG8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