diff --git a/scripts/deploy-ebook-to-www b/scripts/deploy-ebook-to-www index 5c0e751b..35442b21 100755 --- a/scripts/deploy-ebook-to-www +++ b/scripts/deploy-ebook-to-www @@ -431,8 +431,10 @@ do done queuedTasks="false" -if tsp | grep --quiet --extended-regexp "^[0-9]+\s+queued"; then - queuedTasks="true" +if which tsp > /dev/null; then + if tsp | grep --quiet --extended-regexp "^[0-9]+\s+queued"; then + queuedTasks="true" + fi fi if [ "${feeds}" = "true" ]; then