Print information about /data if error

pull/364/head
Kelson 6 years ago
parent 62e6c7ffb0
commit 44613aae5d

@ -16,3 +16,10 @@ fi
CMD="/usr/local/bin/kiwix-serve --port=80 $@"
echo $CMD
$CMD
# If error, print the content of /data
if [ $? -ne 0 ]
then
echo "Here is the content of /data:"
find /data -type f
fi

Loading…
Cancel
Save