hp-plugin.in: Add brackets to prevent early exit
This commit is contained in:
parent
31a7a6c1ee
commit
606f617bde
@ -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
|
# the directory can be used by other hplip tools, so we don't have to remove it if the failure happens
|
||||||
if [ ! -d ~/.hplip ]
|
if [ ! -d ~/.hplip ]
|
||||||
then
|
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
|
fi
|
||||||
|
|
||||||
@bindir@/curl --create-dir -O --output-dir ~/.hplip ${PLUGIN_SOURCE}
|
@bindir@/curl --create-dir -O --output-dir ~/.hplip ${PLUGIN_SOURCE}
|
||||||
|
Loading…
Reference in New Issue
Block a user