From d2ba94f7a053be93b80d6c94ef1c1fe8ed22f9e1 Mon Sep 17 00:00:00 2001 From: "Lucas C. Villa Real" Date: Tue, 30 Jan 2018 14:12:36 -0200 Subject: Ignore archives not ending on .rpm or .deb --- bin/ThirdPartyInstaller | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/ThirdPartyInstaller b/bin/ThirdPartyInstaller index bb57445..33d6a2d 100755 --- a/bin/ThirdPartyInstaller +++ b/bin/ThirdPartyInstaller @@ -469,7 +469,9 @@ if echo "$@" | grep -q "\.rpm" && echo "$@" | grep -q "\.deb" then Die "Error: cannot handle both RPM and DEB files in one shot." elif echo "$@" | grep -q "\.rpm" then Import RPM -else Import DEB +elif echo "$@" | grep -q "\.deb" +then Import DEB +else Die "Error: this tool can only handle RPM and DEB archives." fi # The inputfiles array holds the full path of all RPM/DEB input files -- cgit v1.1