summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2019-05-20 12:42:44 +0200
committerRamón M. Gómez <ramongomez@us.es>2019-05-20 12:42:44 +0200
commitaf25f93792a18a65a6b7832a8e33b287de92d6b5 (patch)
treefd793452f862ed8fd6c8b5c6eaead3d2d151ca3c
parentcc2231f5df7ce874220aef7e6f0c87f0f2aff1c9 (diff)
parent6fa6ba096b49da49abfb1bdccd227934e516bf5f (diff)
Merge remote-tracking branch 'origin/#910_BUGmaster_updateCache_ogGetPathControlCadena'
-rwxr-xr-xclient/shared/scripts/updateCache3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/shared/scripts/updateCache b/client/shared/scripts/updateCache
index 7c3f4534..5abc7307 100755
--- a/client/shared/scripts/updateCache
+++ b/client/shared/scripts/updateCache
@@ -85,7 +85,8 @@ if ! $(ogFindCache >/dev/null); then
fi
# comprobar si la imagen existe (.img, .img.diff o directorio)
-REPOFILE=$(ogGetPath "REPO" "/$2") || exit $(ogRaiseError session $OG_ERR_NOTFOUND "REPO /$2"; echo $?)
+REPOFILE=$(ogGetPath "REPO" "/$2")
+[ -n "$REPOFILE" ] || exit $(ogRaiseError session $OG_ERR_NOTFOUND "REPO /$2"; echo $?)
ogEcho log session "$MSG_SCRIPTS_UPDATECACHE_DOUPDATE"
# Distingo si es monolitica o sincronizable