We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 749c362 commit 0b31cb4Copy full SHA for 0b31cb4
bashttpd.sh
@@ -101,7 +101,7 @@ elif [ -f ${URL_PATH} -a ! -r ${URL_PATH} ]; then
101
elif [ -d ${URL_PATH} ]; then
102
# Return 200 for directory listings.
103
# If `tree` is installed, use that for pretty output.
104
- if [ -x "$( which tree )" ]; then
+ if which tree >/dev/null; then
105
CONTENT_TYPE="text/html"
106
CONTENT_BODY=$( tree -H "" -L 1 --du -D ${URL_PATH} )
107
else
0 commit comments