hp-plugin.in: Add brackets to prevent early exit

This commit is contained in:
Zdenek Dohnal 2023-08-03 16:56:06 +02:00
parent 31a7a6c1ee
commit 606f617bde

View File

@ -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}