From 606f617bdecb01aab9b0c52e9d1da727244d33ec Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Thu, 3 Aug 2023 16:56:06 +0200 Subject: [PATCH] hp-plugin.in: Add brackets to prevent early exit --- hp-plugin.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hp-plugin.in b/hp-plugin.in index b55f8ac..c6de68a 100644 --- a/hp-plugin.in +++ b/hp-plugin.in @@ -19,7 +19,7 @@ PLUGIN_FILE="hplip-${VER}-plugin.run" # the directory can be used by other hplip tools, so we don't have to remove it if the failure happens if [ ! -d ~/.hplip ] then - @bindir@/mkdir ~/.hplip || @bindir@/echo "Cannot create the ~/.hplip dir, exiting" && exit 1 + @bindir@/mkdir ~/.hplip || (@bindir@/echo "Cannot create the ~/.hplip dir, exiting" && exit 1) fi @bindir@/curl --create-dir -O --output-dir ~/.hplip ${PLUGIN_SOURCE}