diff options
Diffstat (limited to 'client/engine/Protocol.lib')
-rwxr-xr-x | client/engine/Protocol.lib | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/engine/Protocol.lib b/client/engine/Protocol.lib index 49a83d73..786dba87 100755 --- a/client/engine/Protocol.lib +++ b/client/engine/Protocol.lib @@ -293,7 +293,7 @@ esac [ $# == "$ARG" ] || ogRaiseError $OG_ERR_FORMAT || return $? # Comprobar fichero origen -ogGetPath $SOURCE &> /dev/null || ogRaiseError $OG_ERR_NOTFOUND " device or file $DEVICE not found" || return $? +[ -n "$(ogGetPath $SOURCE)" ] || ogRaiseError $OG_ERR_NOTFOUND " device or file $DEVICE not found" || return $? SESSION=${!ARG} @@ -410,7 +410,7 @@ then fi #3er param check - que puede ser un dispositvo o un fichero. -#ogGetPath "$3" > /dev/null || ogRaiseError $OG_ERR_NOTFOUND " device or file $3" || PERROR=9 #return $? +# [ -n "$(ogGetPath $3)" ] || ogRaiseError $OG_ERR_NOTFOUND " device or file $3" || PERROR=9 #return $? DEVICE=$3 #4 y 5 param check . solo si es sobre particiones. @@ -565,7 +565,7 @@ esac [ $# == "$ARG" ] || ogRaiseError $OG_ERR_FORMAT || return $? # Comprobar fichero origen -ogGetPath $SOURCE &> /dev/null || ogRaiseError $OG_ERR_NOTFOUND " device or file $DEVICE not found" || return $? +[ -n "$(ogGetPath $SOURCE)" ] || ogRaiseError $OG_ERR_NOTFOUND " device or file $DEVICE not found" || return $? # eliminamos ficheros antiguos de log #rm $LOGFILE |