summaryrefslogtreecommitdiffstats
path: root/client/engine/Image.lib
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2017-05-16 10:11:24 +0000
committerramon <ramongomez@us.es>2017-05-16 10:11:24 +0000
commita4c437490c5299a4cbaa5d39ab971c237d4999b9 (patch)
treecfd636b64dd0452e0497716c40667bc30d07701d /client/engine/Image.lib
parentda82642e1581dbc44d0940058f01d5192edd2800 (diff)
#740: Compatibilidad entre versiones de Partclone que pueden usar {{{partclone.dd -c}}}, {{{partclone.dd}}} (sin {{{-c}}}) o {{{partclone.imager}}}.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5300 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine/Image.lib')
-rwxr-xr-xclient/engine/Image.lib4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/engine/Image.lib b/client/engine/Image.lib
index 47ea2372..4afa0892 100755
--- a/client/engine/Image.lib
+++ b/client/engine/Image.lib
@@ -83,8 +83,8 @@ case "$TOOL" in
# Por compatibilidad, si no existe el ejecutable usar por defecto "parclone.dd".
which $PARAM1 &>/dev/null || PARAM1="partclone.dd"
PARAM1="$PARAM1 -d0 -F -c -s $DEV"
- # El programa partclone.dd no tiene opción "-c".
- [[ "$PARAM1" =~ ^partclone.dd ]] && PARAM1="${PARAM1/ -c / }"
+ # Algunas versiones de partclone.dd no tienen opción "-c".
+ [ -z "$(eval ${PARAM1%% *} --help 2>&1 | grep -- -c)" ] && PARAM1="${PARAM1/ -c / }"
;;
esac
# Comprobar que existe mbuffer.