diff options
-rwxr-xr-x | client/shared/scripts/updateCache | 3 |
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 |