Fix directory entry and exit in deploy-ebook-to-www.

This commit is contained in:
Danny Bautista 2019-06-05 13:25:33 -04:00 committed by Alex Cabal
parent 683e5b1a32
commit b1c863ed93

View file

@ -54,7 +54,10 @@ do
die "Invalid repo root: ${repoDir}"
fi
cd "${repoDir}" || return
if ! pushd "${repoDir}" > /dev/null; then
echo "Couldn't cd into ${repoDir}. Skipping."
continue
fi
if [ "${verbose}" = "true" ]; then
printf "Entering %s\n" "${repoDir}"
@ -155,6 +158,8 @@ do
if [ "${verbose}" = "true" ]; then
printf "Done.\n"
fi
popd > /dev/null || die "Couldn't pop directory."
done
# Build the OPDS catalog