mirror of
https://github.com/standardebooks/web.git
synced 2025-07-09 16:20:27 -04:00
Fix directory entry and exit in deploy-ebook-to-www.
This commit is contained in:
parent
683e5b1a32
commit
b1c863ed93
1 changed files with 6 additions and 1 deletions
|
@ -54,7 +54,10 @@ do
|
||||||
die "Invalid repo root: ${repoDir}"
|
die "Invalid repo root: ${repoDir}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "${repoDir}" || return
|
if ! pushd "${repoDir}" > /dev/null; then
|
||||||
|
echo "Couldn't cd into ${repoDir}. Skipping."
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${verbose}" = "true" ]; then
|
if [ "${verbose}" = "true" ]; then
|
||||||
printf "Entering %s\n" "${repoDir}"
|
printf "Entering %s\n" "${repoDir}"
|
||||||
|
@ -155,6 +158,8 @@ do
|
||||||
if [ "${verbose}" = "true" ]; then
|
if [ "${verbose}" = "true" ]; then
|
||||||
printf "Done.\n"
|
printf "Done.\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
popd > /dev/null || die "Couldn't pop directory."
|
||||||
done
|
done
|
||||||
|
|
||||||
# Build the OPDS catalog
|
# Build the OPDS catalog
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue