diff options
author | irina <irinagomez@us.es> | 2018-03-28 11:20:36 +0000 |
---|---|---|
committer | irina <irinagomez@us.es> | 2018-03-28 11:20:36 +0000 |
commit | 305c2563a96d76587329a463132d95a3b11c45fe (patch) | |
tree | aec813a4bc2603ca3ebaacebe6af82ec99bb61b5 /client/engine/Protocol.lib | |
parent | 6bb748bfd6df24cf0fd7b2b6fe03f889e3ba336e (diff) |
Se corrigen erratas por usar el código de error de ogGetPath
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5688 a21b9725-9963-47de-94b9-378ad31fedc9
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 |